comparison pidgin/gtkdebug.c @ 28966:f59dd3e9875d

Use a stock icon for 'Filter' in debug window. Closes #9150.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 03 Feb 2010 16:51:13 +0000
parents b162300ab1e7
children 93f613ccd002 a32da45d80ba
comparison
equal deleted inserted replaced
28965:0278f0e28504 28966:f59dd3e9875d
764 #ifdef HAVE_REGEX_H 764 #ifdef HAVE_REGEX_H
765 /* regex stuff */ 765 /* regex stuff */
766 gtk_toolbar_insert_space(GTK_TOOLBAR(toolbar), -1); 766 gtk_toolbar_insert_space(GTK_TOOLBAR(toolbar), -1);
767 767
768 /* regex toggle button */ 768 /* regex toggle button */
769 image = gtk_image_new_from_stock(GTK_STOCK_FIND, GTK_ICON_SIZE_MENU);
769 win->filter = 770 win->filter =
770 gtk_toolbar_append_element(GTK_TOOLBAR(toolbar), 771 gtk_toolbar_append_element(GTK_TOOLBAR(toolbar),
771 GTK_TOOLBAR_CHILD_TOGGLEBUTTON, 772 GTK_TOOLBAR_CHILD_TOGGLEBUTTON,
772 NULL, _("Filter"), _("Filter"), 773 NULL, _("Filter"), _("Filter"),
773 NULL, NULL, 774 NULL, image,
774 G_CALLBACK(regex_filter_toggled_cb), 775 G_CALLBACK(regex_filter_toggled_cb),
775 win); 776 win);
776 /* we purposely disable the toggle button here in case 777 /* we purposely disable the toggle button here in case
777 * /purple/gtk/debug/expression has an empty string. If it does not have 778 * /purple/gtk/debug/expression has an empty string. If it does not have
778 * an empty string, the change signal will get called and make the 779 * an empty string, the change signal will get called and make the