empathy r1190 - trunk/libempathy-gtk



Author: xclaesse
Date: Thu Jul  3 16:09:25 2008
New Revision: 1190
URL: http://svn.gnome.org/viewvc/empathy?rev=1190&view=rev

Log:
Set an icon for the spellcheck menu item


Modified:
   trunk/libempathy-gtk/empathy-chat.c

Modified: trunk/libempathy-gtk/empathy-chat.c
==============================================================================
--- trunk/libempathy-gtk/empathy-chat.c	(original)
+++ trunk/libempathy-gtk/empathy-chat.c	Thu Jul  3 16:09:25 2008
@@ -946,6 +946,7 @@
 	gchar           *str = NULL;
 	EmpathyChatSpell *chat_spell;
 	GtkWidget       *smiley_menu;
+	GtkWidget       *image;
 
 	priv = GET_PRIV (chat);
 	buffer = gtk_text_view_get_buffer (view);
@@ -1002,7 +1003,10 @@
 		gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), item);
 		gtk_widget_show (item);
 
-		item = gtk_menu_item_new_with_mnemonic (_("_Check Word Spelling..."));
+		item = gtk_image_menu_item_new_with_mnemonic (_("_Check Word Spelling..."));
+		image = gtk_image_new_from_icon_name (GTK_STOCK_SPELL_CHECK,
+						      GTK_ICON_SIZE_MENU);
+		gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
 		g_signal_connect (item,
 				  "activate",
 				  G_CALLBACK (chat_text_check_word_spelling_cb),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]