[gedit-plugins] Use the new section names
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Use the new section names
- Date: Wed, 5 Feb 2014 21:49:25 +0000 (UTC)
commit f661106c6e05e6d67fd31cc5edb79d7b40f0fb08
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Feb 5 22:44:42 2014 +0100
Use the new section names
.../bookmarks/gedit-bookmarks-app-activatable.c | 3 +--
plugins/colorpicker/colorpicker.py | 2 +-
plugins/colorschemer/schemer/__init__.py | 2 +-
plugins/commander/commander/appactivatable.py | 2 +-
plugins/drawspaces/gedit-drawspaces-plugin.c | 3 +--
plugins/multiedit/multiedit/appactivatable.py | 2 +-
plugins/textsize/textsize/__init__.py | 2 +-
7 files changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/plugins/bookmarks/gedit-bookmarks-app-activatable.c
b/plugins/bookmarks/gedit-bookmarks-app-activatable.c
index 102c99c..aac6270 100644
--- a/plugins/bookmarks/gedit-bookmarks-app-activatable.c
+++ b/plugins/bookmarks/gedit-bookmarks-app-activatable.c
@@ -137,8 +137,7 @@ gedit_bookmarks_app_activatable_activate (GeditAppActivatable *activatable)
gtk_application_add_accelerator (GTK_APPLICATION (priv->app), "<Primary>B", "win.bookmark-next",
NULL);
gtk_application_add_accelerator (GTK_APPLICATION (priv->app), "<Primary><Shift>B",
"win.bookmark-prev", NULL);
- priv->menu_ext = gedit_app_activatable_extend_menu (activatable,
- "ext3");
+ priv->menu_ext = gedit_app_activatable_extend_menu (activatable, "search-section");
item = g_menu_item_new (_("Toggle Bookmark"), "win.bookmark-toggle");
gedit_menu_extension_append_menu_item (priv->menu_ext, item);
g_object_unref (item);
diff --git a/plugins/colorpicker/colorpicker.py b/plugins/colorpicker/colorpicker.py
index b4840e1..9da48f9 100644
--- a/plugins/colorpicker/colorpicker.py
+++ b/plugins/colorpicker/colorpicker.py
@@ -124,7 +124,7 @@ class ColorPickerAppActivatable(GObject.Object, Gedit.AppActivatable):
GObject.Object.__init__(self)
def do_activate(self):
- self.menu_ext = self.extend_menu("ext9")
+ self.menu_ext = self.extend_menu("tools-section")
item = Gio.MenuItem.new(_("Pick _Color..."), "win.colorpicker")
self.menu_ext.prepend_menu_item(item)
diff --git a/plugins/colorschemer/schemer/__init__.py b/plugins/colorschemer/schemer/__init__.py
index c5e92d0..0811015 100644
--- a/plugins/colorschemer/schemer/__init__.py
+++ b/plugins/colorschemer/schemer/__init__.py
@@ -36,7 +36,7 @@ class AppActivatable(GObject.Object, Gedit.AppActivatable):
action.connect('activate', self.open_dialog)
self.app.add_action(action)
- self.menu_ext = self.extend_menu("appmenuext2")
+ self.menu_ext = self.extend_menu("preferences-section")
item = Gio.MenuItem.new(_("Color Scheme Editor"), "app.schemer")
self.menu_ext.append_menu_item(item)
diff --git a/plugins/commander/commander/appactivatable.py b/plugins/commander/commander/appactivatable.py
index 6f60d38..9d7919a 100644
--- a/plugins/commander/commander/appactivatable.py
+++ b/plugins/commander/commander/appactivatable.py
@@ -43,7 +43,7 @@ class CommanderAppActivatable(GObject.Object, Gedit.AppActivatable):
self.app.add_accelerator("<Primary>period", "win.commander", None)
- self.menu_ext = self.extend_menu("ext9")
+ self.menu_ext = self.extend_menu("view-section-1")
item = Gio.MenuItem.new(_('Commander Mode'), "win.commander")
self.menu_ext.append_menu_item(item)
diff --git a/plugins/drawspaces/gedit-drawspaces-plugin.c b/plugins/drawspaces/gedit-drawspaces-plugin.c
index 8d2d6f9..8a40ae0 100644
--- a/plugins/drawspaces/gedit-drawspaces-plugin.c
+++ b/plugins/drawspaces/gedit-drawspaces-plugin.c
@@ -261,8 +261,7 @@ gedit_drawspaces_plugin_app_activate (GeditAppActivatable *activatable)
priv = GEDIT_DRAWSPACES_PLUGIN (activatable)->priv;
- priv->menu_ext = gedit_app_activatable_extend_menu (activatable,
- "ext5");
+ priv->menu_ext = gedit_app_activatable_extend_menu (activatable, "view-section-2");
item = g_menu_item_new (_("Show _White Space"), "win.show-white-space");
gedit_menu_extension_append_menu_item (priv->menu_ext, item);
g_object_unref (item);
diff --git a/plugins/multiedit/multiedit/appactivatable.py b/plugins/multiedit/multiedit/appactivatable.py
index e042cba..25e2c7a 100644
--- a/plugins/multiedit/multiedit/appactivatable.py
+++ b/plugins/multiedit/multiedit/appactivatable.py
@@ -32,7 +32,7 @@ class MultiEditAppActivatable(GObject.Object, Gedit.AppActivatable):
def do_activate(self):
self.app.add_accelerator("<Primary><Shift>C", "win.multiedit", None)
- self.menu_ext = self.extend_menu("ext9")
+ self.menu_ext = self.extend_menu("tools-section")
item = Gio.MenuItem.new(_('Multi Edit Mode'), "win.multiedit")
self.menu_ext.append_menu_item(item)
diff --git a/plugins/textsize/textsize/__init__.py b/plugins/textsize/textsize/__init__.py
index 7b101f3..0ec378d 100644
--- a/plugins/textsize/textsize/__init__.py
+++ b/plugins/textsize/textsize/__init__.py
@@ -46,7 +46,7 @@ class TextSizeAppActivatable(GObject.Object, Gedit.AppActivatable):
self.app.set_accels_for_action("win.text-smaller", ["<Primary>minus", "<Primary>KP_Subtract"])
self.app.set_accels_for_action("win.text-normal", ["<Primary>0", "<Primary>KP_0"])
- self.menu_ext = self.extend_menu("ext9")
+ self.menu_ext = self.extend_menu("view-section-2")
item = Gio.MenuItem.new(_("_Normal size"), "win.text-normal")
self.menu_ext.prepend_menu_item(item)
item = Gio.MenuItem.new(_("S_maller Text"), "win.text-smaller")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]