# HG changeset patch # User Elliott Sales de Andrade # Date 1246587702 0 # Node ID 13d0a8097a94361040c1b283848f664acf42bb15 # Parent 0af18d18de0d1f044081c86048de62df2562e091 Fix the Add button sensitivity for the add smiley window when using the "Add Custom Smiley" menu item on an in-conversation custom smiley. diff -r 0af18d18de0d -r 13d0a8097a94 pidgin/gtksmiley.c --- a/pidgin/gtksmiley.c Fri Jul 03 02:10:53 2009 +0000 +++ b/pidgin/gtksmiley.c Fri Jul 03 02:21:42 2009 +0000 @@ -491,8 +491,15 @@ 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