[eog] EogWindow: React to changes of the *bar GSettings keys again
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogWindow: React to changes of the *bar GSettings keys again
- Date: Wed, 25 Jul 2012 20:28:24 +0000 (UTC)
commit 332912fd4deadac51c17043392025aecd8b10b2b
Author: Felix Riemann <friemann gnome org>
Date: Wed Jul 25 20:44:05 2012 +0200
EogWindow: React to changes of the *bar GSettings keys again
src/eog-window.c | 26 +++++++++++++++++++++-----
1 files changed, 21 insertions(+), 5 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index f4ed61e..222e318 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4000,11 +4000,13 @@ disconnect_proxy_cb (GtkUIManager *manager,
}
static void
-set_action_properties (GtkActionGroup *window_group,
- GtkActionGroup *image_group,
- GtkActionGroup *gallery_group)
+set_action_properties (EogWindow *window,
+ GtkActionGroup *window_group,
+ GtkActionGroup *image_group,
+ GtkActionGroup *gallery_group)
{
- GtkAction *action;
+ GtkAction *action;
+ EogWindowPrivate *priv = window->priv;
action = gtk_action_group_get_action (gallery_group, "GoPrevious");
g_object_set (action, "short_label", _("Previous"), NULL);
@@ -4037,6 +4039,20 @@ set_action_properties (GtkActionGroup *window_group,
action = gtk_action_group_get_action (window_group, "ViewImageGallery");
g_object_set (action, "short_label", _("Gallery"), NULL);
+ g_settings_bind (priv->ui_settings, EOG_CONF_UI_IMAGE_GALLERY, action,
+ "active", G_SETTINGS_BIND_GET);
+
+ action = gtk_action_group_get_action (window_group, "ViewSidebar");
+ g_settings_bind (priv->ui_settings, EOG_CONF_UI_SIDEBAR, action,
+ "active", G_SETTINGS_BIND_GET);
+
+ action = gtk_action_group_get_action (window_group, "ViewStatusbar");
+ g_settings_bind (priv->ui_settings, EOG_CONF_UI_STATUSBAR, action,
+ "active", G_SETTINGS_BIND_GET);
+
+ action = gtk_action_group_get_action (window_group, "ViewToolbar");
+ g_settings_bind (priv->ui_settings, EOG_CONF_UI_TOOLBAR, action,
+ "active", G_SETTINGS_BIND_GET);
action = gtk_action_group_get_action (image_group, "EditMoveToTrash");
g_object_set (action, "short_label", C_("action (to trash)", "Trash"), NULL);
@@ -4493,7 +4509,7 @@ eog_window_construct_ui (EogWindow *window)
G_N_ELEMENTS (toggle_entries_gallery),
window);
- set_action_properties (priv->actions_window,
+ set_action_properties (window, priv->actions_window,
priv->actions_image,
priv->actions_gallery);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]