comparison pidgin/gtkimhtmltoolbar.c @ 23138:3f39147884ce

Show some possibly helpful text in the tooltip for disabled smileys.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 10 May 2008 17:05:25 +0000
parents dfc99f5dec43
children 53b3c75c9e26
comparison
equal deleted inserted replaced
23137:dfc99f5dec43 23138:3f39147884ce
683 const gchar *shortcut = custom_smiley->smile; 683 const gchar *shortcut = custom_smiley->smile;
684 684
685 if (strcmp(face, shortcut) == 0) { 685 if (strcmp(face, shortcut) == 0) {
686 /* The smiley of the current button has the same shortcut as 686 /* The smiley of the current button has the same shortcut as
687 this custom smiley, grey it out */ 687 this custom smiley, grey it out */
688 gtk_tooltips_set_tip(toolbar->tooltips, button,
689 _("This smiley is disabled because a custom smiley exists for this shortcut."),
690 NULL);
688 gtk_widget_set_sensitive(button, FALSE); 691 gtk_widget_set_sensitive(button, FALSE);
689 break; 692 break;
690 } 693 }
691 } 694 }
692 } 695 }