Mercurial > pidgin
comparison src/gtkimhtml.c @ 13339:d46a27d29eed
[gaim-migrate @ 15709]
Clear formatting is only useful if the conversation imhtml is editable.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 27 Feb 2006 19:40:46 +0000 |
parents | d04cfb5fa85b |
children | 60de8d24831d |
comparison
equal
deleted
inserted
replaced
13338:0f708ed02902 | 13339:d46a27d29eed |
---|---|
831 G_CALLBACK(paste_unformatted_cb), imhtml); | 831 G_CALLBACK(paste_unformatted_cb), imhtml); |
832 | 832 |
833 /* XXX: make this new with mnemonic, and HIG-happy after string thaw */ | 833 /* XXX: make this new with mnemonic, and HIG-happy after string thaw */ |
834 menuitem = gtk_menu_item_new_with_label(_("Clear formatting")); | 834 menuitem = gtk_menu_item_new_with_label(_("Clear formatting")); |
835 gtk_widget_show(menuitem); | 835 gtk_widget_show(menuitem); |
836 gtk_widget_set_sensitive(menuitem, imhtml->editable); | |
836 /* put it after Delete */ | 837 /* put it after Delete */ |
837 gtk_menu_shell_insert(GTK_MENU_SHELL(menu), menuitem, 5); | 838 gtk_menu_shell_insert(GTK_MENU_SHELL(menu), menuitem, 5); |
838 | 839 |
839 g_signal_connect(G_OBJECT(menuitem), "activate", G_CALLBACK(clear_formatting_cb), imhtml); | 840 g_signal_connect(G_OBJECT(menuitem), "activate", G_CALLBACK(clear_formatting_cb), imhtml); |
840 } | 841 } |