pidgin.custom_smiley: cd3217cc: Some little usability changes in the cus...

sadrul at pidgin.im sadrul at pidgin.im
Sun May 11 00:15:43 EDT 2008


-----------------------------------------------------------------
Revision: cd3217cc55f69225b77f1573ded3dbcc5ee5c990
Ancestor: e7f990f7c41bd4dee14137173af738a97cab4d3b
Author: sadrul at pidgin.im
Date: 2008-05-11T04:08:06
Branch: im.pidgin.pidgin.custom_smiley
URL: http://d.pidgin.im/viewmtn/revision/info/cd3217cc55f69225b77f1573ded3dbcc5ee5c990

Modified files:
        pidgin/gtksmiley.c

ChangeLog: 

Some little usability changes in the custom smiley dialog.

-------------- next part --------------
============================================================
--- pidgin/gtksmiley.c	5535824aa2328db107ceea8db49c5479e8375725
+++ pidgin/gtksmiley.c	37794bb126fe79fc849a30dd15fa40b63710ed48
@@ -238,8 +238,7 @@ static void do_add(GtkWidget *widget, Pi
 
 		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 @@ static void do_add_file_cb(const char *f
 	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 @@ void pidgin_smiley_manager_show(void)
 			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);


More information about the Commits mailing list