[eog] Cleanup random image patch
- From: Felix Riemann <friemann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [eog] Cleanup random image patch
- Date: Fri, 5 Feb 2010 15:09:14 +0000 (UTC)
commit f2de185ed25c03d2bf1f60d7311448b26f7ee027
Author: Felix Riemann <friemann gnome org>
Date: Fri Feb 5 16:06:11 2010 +0100
Cleanup random image patch
This adds a mnemonic to the random image menu entry and actually makes
it visible in the application. It also removes the short label of the
action as it can't be used in the toolbar for now anyway since we don't
have a fitting icon.
data/eog-ui.xml | 2 ++
src/eog-window.c | 7 ++-----
2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/data/eog-ui.xml b/data/eog-ui.xml
index 1bb7524..2680f28 100644
--- a/data/eog-ui.xml
+++ b/data/eog-ui.xml
@@ -55,6 +55,8 @@
<separator/>
<menuitem name="GoFirst" action="GoFirst"/>
<menuitem name="GoLast" action="GoLast"/>
+ <separator/>
+ <menuitem name="GoRandom" action="GoRandom"/>
</menu>
<menu name="ToolsMenu" action="Tools">
<placeholder name="ToolsOps_1" />
diff --git a/src/eog-window.c b/src/eog-window.c
index c3a1297..b6eb380 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -3876,8 +3876,8 @@ static const GtkActionEntry action_entries_collection[] = {
{ "GoLast", GTK_STOCK_GOTO_LAST, N_("_Last Image"), "<Alt>End",
N_("Go to the last image of the collection"),
G_CALLBACK (eog_window_cmd_go_last) },
- { "GoRandom", GTK_STOCK_JUMP_TO, N_("Random Image"), "<control>M",
- N_("Go to the a random image in the collection"),
+ { "GoRandom", NULL, N_("_Random Image"), "<control>M",
+ N_("Go to a random image of the collection"),
G_CALLBACK (eog_window_cmd_go_random) },
{ "BackSpace", NULL, N_("_Previous Image"), "BackSpace",
NULL,
@@ -3965,9 +3965,6 @@ set_action_properties (GtkActionGroup *window_group,
g_object_set (action, "short_label", _("Next"), NULL);
g_object_set (action, "is-important", TRUE, NULL);
- action = gtk_action_group_get_action (collection_group, "GoRandom");
- g_object_set (action, "short_label", _("Random image"), NULL);
-
action = gtk_action_group_get_action (image_group, "EditRotate90");
g_object_set (action, "short_label", _("Right"), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]