pidgin: 8958bbc5: Set debug window tool items to be "impor...

qulogic at pidgin.im qulogic at pidgin.im
Sat Feb 20 02:13:03 EST 2010


-----------------------------------------------------------------
Revision: 8958bbc5a8fc6f85d0906e37b0754808791b4007
Ancestor: 8d31b9ab451dbeb751de733ab73a01e483d041c2
Author: qulogic at pidgin.im
Date: 2010-02-20T06:45:38
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8958bbc5a8fc6f85d0906e37b0754808791b4007

Modified files:
        pidgin/gtkdebug.c

ChangeLog: 

Set debug window tool items to be "important" so that they show text when
set to "Both Icon and Text".

-------------- next part --------------
============================================================
--- pidgin/gtkdebug.c	1ca72f3159399f3e3cd33bdddf7612486981635c
+++ pidgin/gtkdebug.c	d46cc59b26e6153a4f20fa799eeb5a8397549825
@@ -744,6 +744,7 @@ debug_window_new(void)
 #ifndef HAVE_REGEX_H
 		/* Find button */
 		item = gtk_tool_button_new_from_stock(GTK_STOCK_FIND);
+		gtk_tool_item_set_is_important(item, TRUE);
 #if GTK_CHECK_VERSION(2,12,0)
 		gtk_tool_item_set_tooltip_text(item, _("Find"));
 #else
@@ -755,6 +756,7 @@ debug_window_new(void)
 
 		/* Save */
 		item = gtk_tool_button_new_from_stock(GTK_STOCK_SAVE);
+		gtk_tool_item_set_is_important(item, TRUE);
 #if GTK_CHECK_VERSION(2,12,0)
 		gtk_tool_item_set_tooltip_text(item, _("Save"));
 #else
@@ -765,6 +767,7 @@ debug_window_new(void)
 
 		/* Clear button */
 		item = gtk_tool_button_new_from_stock(GTK_STOCK_CLEAR);
+		gtk_tool_item_set_is_important(item, TRUE);
 #if GTK_CHECK_VERSION(2,12,0)
 		gtk_tool_item_set_tooltip_text(item, _("Clear"));
 #else
@@ -778,6 +781,7 @@ debug_window_new(void)
 
 		/* Pause */
 		item = gtk_toggle_tool_button_new_from_stock(PIDGIN_STOCK_PAUSE);
+		gtk_tool_item_set_is_important(item, TRUE);
 #if GTK_CHECK_VERSION(2,12,0)
 		gtk_tool_item_set_tooltip_text(item, _("Pause"));
 #else
@@ -792,7 +796,9 @@ debug_window_new(void)
 		gtk_container_add(GTK_CONTAINER(toolbar), GTK_WIDGET(item));
 
 		/* regex toggle button */
-		win->filter = GTK_WIDGET(gtk_toggle_tool_button_new_from_stock(GTK_STOCK_FIND));
+		item = gtk_toggle_tool_button_new_from_stock(GTK_STOCK_FIND);
+		gtk_tool_item_set_is_important(item, TRUE);
+		win->filter = GTK_WIDGET(item);
 		gtk_tool_button_set_label(GTK_TOOL_BUTTON(win->filter), _("Filter"));
 #if GTK_CHECK_VERSION(2,12,0)
 		gtk_tool_item_set_tooltip_text(GTK_TOOL_ITEM(win->filter), _("Filter"));


More information about the Commits mailing list