cpw.rekkanoryo.prefs_window: 1e6768fa: Use a couple size groups to make the bud...

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Wed Nov 11 11:31:35 EST 2009


-----------------------------------------------------------------
Revision: 1e6768fa0c35b1ebeeac3bdd483ba459bc8a8235
Ancestor: a0a65d22ffe83f18a1a1bf7b07ee7ef170d28db6
Author: rekkanoryo at pidgin.im
Date: 2009-11-11T16:27:23
Branch: im.pidgin.cpw.rekkanoryo.prefs_window
URL: http://d.pidgin.im/viewmtn/revision/info/1e6768fa0c35b1ebeeac3bdd483ba459bc8a8235

Modified files:
        pidgin/gtkprefs.c

ChangeLog: 

Use a couple size groups to make the buddy list and status icon theme selectors
and labels look consistent and sane.

-------------- next part --------------
============================================================
--- pidgin/gtkprefs.c	695188b46cbd6d31ce77e4c6393954aeea464737
+++ pidgin/gtkprefs.c	56f591c620fdca9f7a7d165607ffc500e6112639
@@ -1167,6 +1167,8 @@ theme_page(void)
 		{"STRING", 0, 2}
 	};
 	GtkWidget *themesel_hbox;
+	GtkSizeGroup *label_sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
+	GtkSizeGroup *combo_sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
 
 	ret = gtk_vbox_new(FALSE, PIDGIN_HIG_CAT_SPACE);
 	gtk_container_set_border_width (GTK_CONTAINER (ret), PIDGIN_HIG_BORDER);
@@ -1175,14 +1177,16 @@ theme_page(void)
 	themesel_hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_BOX_SPACE);
 
 	label = gtk_label_new(_("Buddy List Theme:"));
+	gtk_size_group_add_widget(label_sg, label);
 	gtk_box_pack_start(GTK_BOX(themesel_hbox), label, FALSE, FALSE, 0);
 
 	prefs_blist_themes_combo_box = prefs_build_theme_combo_box(prefs_blist_themes,
 						purple_prefs_get_string(PIDGIN_PREFS_ROOT "/blist/theme"),
 						"blist");
-
+	g_signal_connect(G_OBJECT(prefs_blist_themes_combo_box), "changed",
+						(GCallback)prefs_set_blist_theme_cb, NULL);
+	gtk_size_group_add_widget(combo_sg, prefs_blist_themes_combo_box);
 	gtk_box_pack_start(GTK_BOX(themesel_hbox), prefs_blist_themes_combo_box, FALSE, FALSE, 0);
-	g_signal_connect(G_OBJECT(prefs_blist_themes_combo_box), "changed", (GCallback)prefs_set_blist_theme_cb, NULL);
 
 	gtk_box_pack_start(GTK_BOX(ret), themesel_hbox, FALSE, FALSE, 0);
 
@@ -1190,14 +1194,16 @@ theme_page(void)
 	themesel_hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_BOX_SPACE);
 
 	label = gtk_label_new(_("Status Icon Theme:"));
+	gtk_size_group_add_widget(label_sg, label);
 	gtk_box_pack_start(GTK_BOX(themesel_hbox), label, FALSE, FALSE, 0);
 
 	prefs_status_themes_combo_box = prefs_build_theme_combo_box(prefs_status_icon_themes,
 						purple_prefs_get_string(PIDGIN_PREFS_ROOT "/status/icon-theme"),
 						"icon");
-
+	g_signal_connect(G_OBJECT(prefs_status_themes_combo_box), "changed",
+						(GCallback)prefs_set_status_icon_theme_cb, NULL);
+	gtk_size_group_add_widget(combo_sg, prefs_status_themes_combo_box);
 	gtk_box_pack_start(GTK_BOX(themesel_hbox), prefs_status_themes_combo_box, FALSE, FALSE, 0);
-	g_signal_connect(G_OBJECT(prefs_status_themes_combo_box), "changed", (GCallback)prefs_set_status_icon_theme_cb, NULL);
 
 	gtk_box_pack_start(GTK_BOX(ret), themesel_hbox, FALSE, FALSE, 0);
 


More information about the Commits mailing list