[gitg] Add Reload menu entry to history view
- From: Sindhu S <sindhus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Add Reload menu entry to history view
- Date: Fri, 17 May 2013 16:00:50 +0000 (UTC)
commit 4f849edca2cbc85be13c87052648686a7dd9b094
Author: Sindhu S <sindhus live in>
Date: Fri May 17 20:31:45 2013 +0530
Add Reload menu entry to history view
Add reload menu entry to app-win-menu-views and win-menu-views.
Remove comment in on_reload_activated().
gitg/gitg-window.vala | 6 +-----
gitg/resources/ui/gitg-menus.ui | 7 +++++++
2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index 68d703b..d309b08 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -208,11 +208,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
private void on_reload_activated()
{
- // Check to ensure history is active
- if (d_repository != null)
- {
- repository_changed();
- }
+ repository_changed();
}
private void on_clone_repository()
diff --git a/gitg/resources/ui/gitg-menus.ui b/gitg/resources/ui/gitg-menus.ui
index a9c6f2e..d3859fb 100644
--- a/gitg/resources/ui/gitg-menus.ui
+++ b/gitg/resources/ui/gitg-menus.ui
@@ -147,6 +147,13 @@
</section>
<section>
<item>
+ <attribute name="label" translatable="yes">_Reload</attribute>
+ <attribute name="action">win.reload</attribute>
+ <attribute name="accel"><Primary>r</attribute>
+ </item>
+ </section>
+ <section>
+ <item>
<attribute name="label" translatable="yes">User Information</attribute>
<attribute name="action">win.user-information-repo</attribute>
</item>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]