pidgin: d2383e91: More fixes for Gtk < 2.6

nosnilmot at pidgin.im nosnilmot at pidgin.im
Tue Aug 18 14:50:26 EDT 2009


-----------------------------------------------------------------
Revision: d2383e911ebba694cd695847354d51d2fff2fbaf
Ancestor: f3fc028d9b3beec4d7d987c7b04796f22b6f4bf6
Author: nosnilmot at pidgin.im
Date: 2009-08-18T18:48:45
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d2383e911ebba694cd695847354d51d2fff2fbaf

Modified files:
        pidgin/gtkutils.c

ChangeLog: 

More fixes for Gtk < 2.6

-------------- next part --------------
============================================================
--- pidgin/gtkutils.c	d5ad48e7bc73be72da53753acf30e558c0213696
+++ pidgin/gtkutils.c	439850f3e9de4db4a560eb82525b7229b687961c
@@ -3699,9 +3699,13 @@ file_context_menu(GtkIMHtml *imhtml, Gtk
 	gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
 
 	/* Open Containing Directory */
+#if GTK_CHECK_VERSION(2,6,0)
 	img = gtk_image_new_from_stock(GTK_STOCK_DIRECTORY, GTK_ICON_SIZE_MENU);
 	item = gtk_image_menu_item_new_with_mnemonic(_("Open _Containing Directory"));
 	gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), img);
+#else
+	item = gtk_menu_item_new_with_mnemonic(_("Open _Containing Directory"));
+#endif
 	g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(open_containing_cb), (gpointer)url);
 	gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
 
@@ -3767,9 +3771,13 @@ audio_context_menu(GtkIMHtml *imhtml, Gt
 	url = gtk_imhtml_link_get_url(link);
 
 	/* Play Sound */
+#if GTK_CHECK_VERSION(2,6,0)
 	img = gtk_image_new_from_stock(GTK_STOCK_MEDIA_PLAY, GTK_ICON_SIZE_MENU);
 	item = gtk_image_menu_item_new_with_mnemonic(_("_Play Sound"));
 	gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), img);
+#else
+	item = gtk_menu_item_new_with_mnemonic(_("_Play Sound"));
+#endif
 	g_signal_connect_swapped(G_OBJECT(item), "activate", G_CALLBACK(gtk_imhtml_link_activate), link);
 	gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
 


More information about the Commits mailing list