/pidgin/main: b307d78f094f: Disable small button styling on GTK+3.

Elliott Sales de Andrade qulogic at pidgin.im
Fri Feb 14 04:26:28 EST 2014


Changeset: b307d78f094f7367cfba70e58726dd06b6a6c02e
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2014-02-14 01:41 -0500
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/b307d78f094f

Description:

Disable small button styling on GTK+3.

I don't see any difference with the RC styling, and I don't think the
buttons are all that large anyway. Converting the styling to CSS does
not make an appreciable difference in their size, too.

diffstat:

 pidgin/gtkutils.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (29 lines):

diff --git a/pidgin/gtkutils.c b/pidgin/gtkutils.c
--- a/pidgin/gtkutils.c
+++ b/pidgin/gtkutils.c
@@ -223,7 +223,9 @@ pidgin_create_small_button(GtkWidget *im
 	gtk_button_set_focus_on_click(GTK_BUTTON(button), FALSE);
 
 	/* set style to make it as small as possible */
+#if !GTK_CHECK_VERSION(3,0,0)
 	gtk_widget_set_name(button, "pidgin-small-close-button");
+#endif
 
 	gtk_widget_show(image);
 
@@ -3640,6 +3642,7 @@ void pidgin_utils_init(void)
 		register_gnome_url_handlers();
 
 	/* Used to make small buttons */
+#if !GTK_CHECK_VERSION(3,0,0)
 	gtk_rc_parse_string("style \"pidgin-small-close-button\"\n"
 	                    "{\n"
 	                    "GtkWidget::focus-padding = 0\n"
@@ -3651,6 +3654,7 @@ void pidgin_utils_init(void)
 	                    "GtkButton::default-border = {0, 0, 0, 0}\n"
 	                    "}\n"
 	                    "widget \"*.pidgin-small-close-button\" style \"pidgin-small-close-button\"");
+#endif
 
 #ifdef _WIN32
 	winpidgin_register_win32_url_handlers();



More information about the Commits mailing list