# HG changeset patch # User Sadrul Habib Chowdhury # Date 1210478886 0 # Node ID b37b9e53a31b79399efe1cefac1f699a89d065bf # Parent 53b3c75c9e260d0c1b641568386cae717cd6b224 Some little usability changes in the custom smiley dialog. diff -r 53b3c75c9e26 -r b37b9e53a31b pidgin/gtksmiley.c --- a/pidgin/gtksmiley.c Sun May 11 04:04:35 2008 +0000 +++ b/pidgin/gtksmiley.c Sun May 11 04:08:06 2008 +0000 @@ -238,8 +238,7 @@ purple_debug_info("gtksmiley", "adding a new smiley\n"); emoticon = purple_smiley_new_from_file(entry, s->filename); - if (gtk_smileys != NULL) - pidgin_smiley_add_to_list(emoticon); + pidgin_smiley_add_to_list(emoticon); } if (smiley_manager != NULL) @@ -278,6 +277,7 @@ gtk_image_set_from_pixbuf(GTK_IMAGE(s->smiley_image), pixbuf); if (pixbuf) gdk_pixbuf_unref(pixbuf); + gtk_widget_grab_focus(s->smile); } static void @@ -618,7 +618,9 @@ NULL); gtk_window_set_default_size(GTK_WINDOW(win), 50, 400); + gtk_window_set_role(GTK_WINDOW(win), "custom_smiley_manager"); gtk_container_set_border_width(GTK_CONTAINER(win),PIDGIN_HIG_BORDER); + gtk_dialog_set_response_sensitive(GTK_DIALOG(win), GTK_RESPONSE_NO, FALSE); g_signal_connect(win, "response", G_CALLBACK(smiley_manager_select_cb), dialog);