[gthumb] keep the Tools button always sensitive
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] keep the Tools button always sensitive
- Date: Sun, 23 Sep 2012 08:43:07 +0000 (UTC)
commit fa9609cbf8558820a22a93e86f683ba6c094abed
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Sep 23 10:41:20 2012 +0200
keep the Tools button always sensitive
extensions/image_viewer/gth-image-viewer-page.c | 10 ----------
gthumb/gth-browser.c | 10 ----------
2 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index 74b0de0..116c61a 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -693,7 +693,6 @@ gth_image_viewer_page_real_activate (GthViewerPage *base,
GthBrowser *browser)
{
GthImageViewerPage *self;
- GtkAction *action;
self = (GthImageViewerPage*) base;
@@ -707,11 +706,6 @@ gth_image_viewer_page_real_activate (GthViewerPage *base,
self);
gtk_ui_manager_insert_action_group (gth_browser_get_ui_manager (browser), self->priv->actions, 0);
- action = gtk_action_group_get_action (gth_browser_get_actions (browser), "Viewer_Tools");
- g_object_set (action, "sensitive", TRUE, NULL);
- action = gtk_action_group_get_action (gth_browser_get_actions (browser), "Browser_Tools");
- g_object_set (action, "sensitive", TRUE, NULL);
-
self->priv->preloader = gth_browser_get_image_preloader (browser);
self->priv->requested_ready_id = g_signal_connect (G_OBJECT (self->priv->preloader),
"requested_ready",
@@ -816,13 +810,9 @@ static void
gth_image_viewer_page_real_deactivate (GthViewerPage *base)
{
GthImageViewerPage *self;
- GtkAction *action;
self = (GthImageViewerPage*) base;
- action = gtk_action_group_get_action (gth_browser_get_actions (self->priv->browser), "Viewer_Tools");
- g_object_set (action, "sensitive", FALSE, NULL);
-
if (self->priv->browser_merge_id != 0) {
gtk_ui_manager_remove_ui (gth_browser_get_ui_manager (self->priv->browser), self->priv->browser_merge_id);
self->priv->browser_merge_id = 0;
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 5f0a956..1dbcae3 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -2174,8 +2174,6 @@ _gth_browser_deactivate_viewer_page (GthBrowser *browser)
gth_viewer_page_deactivate (browser->priv->viewer_page);
gtk_ui_manager_ensure_update (browser->priv->ui);
gth_browser_set_viewer_widget (browser, NULL);
- _gth_browser_set_action_sensitive (browser, "Viewer_Tools", FALSE);
- _gth_browser_set_action_sensitive (browser, "Browser_Tools", FALSE);
g_object_unref (browser->priv->viewer_page);
browser->priv->viewer_page = NULL;
}
@@ -4690,9 +4688,6 @@ gth_browser_init (GthBrowser *browser)
browser->priv->shrink_wrap_viewer = g_settings_get_boolean (browser->priv->browser_settings, PREF_BROWSER_SHRINK_WRAP_VIEWER);
_gth_browser_set_action_active (browser, "View_ShrinkWrap", browser->priv->shrink_wrap_viewer);
- _gth_browser_set_action_sensitive (browser, "Browser_Tools", FALSE);
- _gth_browser_set_action_sensitive (browser, "Viewer_Tools", FALSE);
-
if (g_settings_get_boolean (browser->priv->browser_settings, PREF_BROWSER_PROPERTIES_VISIBLE))
gth_browser_show_file_properties (browser);
else
@@ -5343,11 +5338,6 @@ gth_browser_set_viewer_widget (GthBrowser *browser,
_gtk_container_remove_children (GTK_CONTAINER (browser->priv->viewer_container), NULL, NULL);
if (widget != NULL)
gtk_container_add (GTK_CONTAINER (browser->priv->viewer_container), widget);
-
- /* deactivate the tools which are not available for every viewer */
-
- if (browser->priv->viewer_sidebar == GTH_SIDEBAR_STATE_TOOLS)
- _gth_browser_set_action_active (browser, "Viewer_Tools", FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]