[libpeas] Fix PeasGtkPluginManager to use "Preferences" and not "Configure"
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Fix PeasGtkPluginManager to use "Preferences" and not "Configure"
- Date: Sun, 12 Jun 2011 19:14:28 +0000 (UTC)
commit e1bf2c72300d5789d57ab7f2f13cccf076cb2e45
Author: Garrett Regier <alias301 gmail com>
Date: Thu Jun 9 17:45:09 2011 -0700
Fix PeasGtkPluginManager to use "Preferences" and not "Configure"
At the same time create the "About" menu item from stock to
have one less thing to translate.
libpeas-gtk/peas-gtk-plugin-manager.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/libpeas-gtk/peas-gtk-plugin-manager.c b/libpeas-gtk/peas-gtk-plugin-manager.c
index 3ec4922..6abce32 100644
--- a/libpeas-gtk/peas-gtk-plugin-manager.c
+++ b/libpeas-gtk/peas-gtk-plugin-manager.c
@@ -313,24 +313,18 @@ populate_popup_cb (PeasGtkPluginManagerView *view,
{
PeasPluginInfo *info;
GtkWidget *item;
- GtkWidget *image;
info = peas_gtk_plugin_manager_view_get_selected_plugin (view);
if (info == NULL)
return;
- item = gtk_image_menu_item_new_with_mnemonic (_("C_onfigure"));
- image = gtk_image_new_from_stock (GTK_STOCK_PREFERENCES,
- GTK_ICON_SIZE_MENU);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
+ item = gtk_image_menu_item_new_from_stock (GTK_STOCK_PREFERENCES, NULL);
g_signal_connect (item, "activate", G_CALLBACK (show_configure_cb), pm);
gtk_widget_set_sensitive (item, plugin_is_configurable (pm, info));
gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), item);
- item = gtk_image_menu_item_new_with_mnemonic (_("_About"));
- image = gtk_image_new_from_stock (GTK_STOCK_ABOUT, GTK_ICON_SIZE_MENU);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
+ item = gtk_image_menu_item_new_from_stock (GTK_STOCK_ABOUT, NULL);
g_signal_connect (item, "activate", G_CALLBACK (show_about_cb), pm);
gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), item);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]