Mercurial > pidgin.yaz
diff src/gtkutils.c @ 5530:2c4c975620f0
[gaim-migrate @ 5930]
Okay, several changes in this commit.
- We now have gtkprefs.h.
- We have a place where we can add UI prefs.
- show_prefs() -> gaim_gtk_prefs_show().
- make_frame() -> gaim_gtk_make_frame().
- The debug window is the first thing to have prefs. You can even
turn off the toolbar if you edit ~/.gaim/prefs.xml.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 26 May 2003 08:30:48 +0000 |
parents | ad445074d239 |
children | 80e4ba770f97 |
line wrap: on
line diff
--- a/src/gtkutils.c Mon May 26 07:06:20 2003 +0000 +++ b/src/gtkutils.c Mon May 26 08:30:48 2003 +0000 @@ -484,3 +484,33 @@ return menuitem; } + +GtkWidget * +gaim_gtk_make_frame(GtkWidget *parent, const char *title) +{ + GtkWidget *vbox, *label, *hbox; + char labeltitle[256]; + + vbox = gtk_vbox_new(FALSE, 6); + gtk_box_pack_start(GTK_BOX(parent), vbox, FALSE, FALSE, 0); + + label = gtk_label_new(NULL); + g_snprintf(labeltitle, sizeof(labeltitle), + "<span weight=\"bold\">%s</span>", title); + + gtk_label_set_markup(GTK_LABEL(label), labeltitle); + gtk_misc_set_alignment(GTK_MISC(label), 0, 0); + gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); + + hbox = gtk_hbox_new(FALSE, 6); + gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); + + label = gtk_label_new(" "); + gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); + + vbox = gtk_vbox_new(FALSE, 6); + gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0); + + return vbox; +} +