[eog/wip/gaction-migration] Make thumbnail popup share its model with the scrollview
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/wip/gaction-migration] Make thumbnail popup share its model with the scrollview
- Date: Wed, 17 Dec 2014 21:05:08 +0000 (UTC)
commit 1e378def9cb7d4fc13d738daf821f647eb871919
Author: Felix Riemann <friemann gnome org>
Date: Wed Dec 17 22:03:58 2014 +0100
Make thumbnail popup share its model with the scrollview
https://bugzilla.gnome.org/show_bug.cgi?id=741050
src/eog-window.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index caa16ff..bebebd9 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4397,7 +4397,6 @@ eog_window_construct_ui (EogWindow *window)
GError *error = NULL;
- GtkWidget *thumb_popup;
GtkWidget *view_popup;
GtkWidget *hpaned;
GAction *action = NULL;
@@ -4564,9 +4563,11 @@ eog_window_construct_ui (EogWindow *window)
g_settings_bind (priv->ui_settings, EOG_CONF_UI_SCROLL_BUTTONS,
priv->nav, "show-buttons", G_SETTINGS_BIND_GET);
- thumb_popup = gtk_ui_manager_get_widget (priv->ui_mgr, "/ThumbnailPopup");
+ // Reuse ScrollView's menu model for the thumbnail menu
eog_thumb_view_set_thumbnail_popup (EOG_THUMB_VIEW (priv->thumbview),
- GTK_MENU (thumb_popup));
+ GTK_MENU (view_popup));
+
+ g_object_unref (view_popup);
gtk_box_pack_start (GTK_BOX (priv->layout), priv->nav, FALSE, FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]