pidgin: 842994bf: Fix the Add button sensitivity for the a...
qulogic at pidgin.im
qulogic at pidgin.im
Thu Jul 2 23:41:16 EDT 2009
-----------------------------------------------------------------
Revision: 842994bf499038fdc932e8eeac98b6cf63245fd3
Ancestor: 456fb8b6e9ae34d094eeece804942244ecb82414
Author: qulogic at pidgin.im
Date: 2009-07-03T02:21:42
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/842994bf499038fdc932e8eeac98b6cf63245fd3
Modified files:
pidgin/gtksmiley.c
ChangeLog:
Fix the Add button sensitivity for the add smiley window when using the
"Add Custom Smiley" menu item on an in-conversation custom smiley.
-------------- next part --------------
============================================================
--- pidgin/gtksmiley.c 7c50b164ae063674040b42ca559d4e2514db52e7
+++ pidgin/gtksmiley.c 35d4a4fa5909bb119153b4c1126964c2df9c5484
@@ -491,8 +491,15 @@ pidgin_smiley_editor_set_image(PidginSmi
if (editor->custom_pixbuf)
g_object_unref(G_OBJECT(editor->custom_pixbuf));
editor->custom_pixbuf = image ? g_object_ref(G_OBJECT(image)) : NULL;
- if (image)
+ if (image) {
gtk_image_set_from_pixbuf(GTK_IMAGE(editor->smiley_image), image);
+ if (editor->entry_len > 0)
+ gtk_dialog_set_response_sensitive(GTK_DIALOG(editor->parent),
+ GTK_RESPONSE_ACCEPT, TRUE);
+ }
+ else
+ gtk_dialog_set_response_sensitive(GTK_DIALOG(editor->parent),
+ GTK_RESPONSE_ACCEPT, FALSE);
}
void
More information about the Commits
mailing list