[gitg/wip/sindhus/interactive-rebase] Add Interactive Rebase entry to settings menu (gears icon)
- From: Sindhu Sundar <sindhus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/sindhus/interactive-rebase] Add Interactive Rebase entry to settings menu (gears icon)
- Date: Wed, 11 Sep 2013 13:13:47 +0000 (UTC)
commit 19c1bd7c73dd82cb0ff1df89438a7c3625c2350b
Author: Sindhu S <sindhus live in>
Date: Wed Sep 11 18:43:07 2013 +0530
Add Interactive Rebase entry to settings menu (gears icon)
gitg/gitg-window.vala | 6 ++++++
gitg/resources/ui/gitg-menus.ui | 12 ++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index eedb457..ad51060 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -87,6 +87,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
{"reload", on_reload_activated},
{"author-details-global", on_global_author_details_activated},
{"author-details-repo", on_repo_author_details_activated},
+ {"interactive-rebase", on_interactive_rebase_activated},
};
[GtkCallback]
@@ -378,6 +379,11 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
author_details.show();
}
+ private void on_interactive_rebase_activated()
+ {
+ stdout.printf("Starting Interactive Rebase");
+ }
+
private void on_current_activity_changed(Object obj, ParamSpec pspec)
{
notify_property("current_activity");
diff --git a/gitg/resources/ui/gitg-menus.ui b/gitg/resources/ui/gitg-menus.ui
index be62f75..7efeabf 100644
--- a/gitg/resources/ui/gitg-menus.ui
+++ b/gitg/resources/ui/gitg-menus.ui
@@ -52,6 +52,12 @@
<attribute name="action">win.author-details-global</attribute>
</item>
</section>
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">_Interactive Rebase</attribute>
+ <attribute name="action">win.interactive-rebase</attribute>
+ </item>
+ </section>
</menu>
<menu id="win-menu-views">
<section>
@@ -67,6 +73,12 @@
<attribute name="action">win.author-details-repo</attribute>
</item>
</section>
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">_Interactive Rebase</attribute>
+ <attribute name="action">win.interactive-rebase</attribute>
+ </item>
+ </section>
</menu>
<menu id="app-win-menu-dash">
<section>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]