[gthumb] call gtk_ui_manager_ensure_update after switch browser/viewer UI
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] call gtk_ui_manager_ensure_update after switch browser/viewer UI
- Date: Tue, 25 Oct 2011 14:57:16 +0000 (UTC)
commit 9f29a69b8171c2dac9d214f912d3e23245ac3222
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Oct 25 16:10:14 2011 +0200
call gtk_ui_manager_ensure_update after switch browser/viewer UI
gthumb/gth-browser.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 3b615de..e14f17b 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -2305,10 +2305,12 @@ _gth_browser_update_viewer_ui (GthBrowser *browser,
g_warning ("ui building failed: %s", error->message);
g_clear_error (&error);
}
+ gtk_ui_manager_ensure_update (gth_browser_get_ui_manager (browser));
}
else if (browser->priv->viewer_ui_merge_id != 0) {
gtk_ui_manager_remove_ui (browser->priv->ui, browser->priv->viewer_ui_merge_id);
browser->priv->viewer_ui_merge_id = 0;
+ gtk_ui_manager_ensure_update (gth_browser_get_ui_manager (browser));
}
if (browser->priv->viewer_page != NULL) {
@@ -2334,10 +2336,12 @@ _gth_browser_update_browser_ui (GthBrowser *browser,
g_warning ("ui building failed: %s", error->message);
g_clear_error (&error);
}
+ gtk_ui_manager_ensure_update (gth_browser_get_ui_manager (browser));
}
else if (browser->priv->browser_ui_merge_id != 0) {
gtk_ui_manager_remove_ui (browser->priv->ui, browser->priv->browser_ui_merge_id);
browser->priv->browser_ui_merge_id = 0;
+ gtk_ui_manager_ensure_update (gth_browser_get_ui_manager (browser));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]