[Xfce4-commits] [xfce/xfce4-appfinder] 02/03: Fix segfault when toggling bookmarks (Bug #14134)

noreply at xfce.org noreply at xfce.org
Thu Jan 4 04:11:30 CET 2018


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-appfinder.

commit 354c7c5bb9f5cb1d01b2b0eec3e668e94b474a45
Author: Andre Miranda <andreldm at xfce.org>
Date:   Wed Jan 3 23:59:43 2018 -0300

    Fix segfault when toggling bookmarks (Bug #14134)
---
 src/appfinder-window.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/appfinder-window.c b/src/appfinder-window.c
index 9422860..4fcd11c 100644
--- a/src/appfinder-window.c
+++ b/src/appfinder-window.c
@@ -809,7 +809,6 @@ xfce_appfinder_window_popup_menu_toggle_bookmark (GtkWidget           *mi,
   GFile        *gfile;
   gchar        *desktop_id;
   GtkWidget    *menu = gtk_widget_get_parent (mi);
-  GtkTreeModel *filter;
   GtkTreeModel *model;
   GError       *error = NULL;
 
@@ -821,8 +820,7 @@ xfce_appfinder_window_popup_menu_toggle_bookmark (GtkWidget           *mi,
       g_object_unref (G_OBJECT (gfile));
 
       /* toggle bookmarks */
-      filter = g_object_get_data (G_OBJECT (menu), "model");
-      model = gtk_tree_model_filter_get_model (GTK_TREE_MODEL_FILTER (filter));
+      model = gtk_tree_model_filter_get_model (GTK_TREE_MODEL_FILTER (window->filter_model));
       xfce_appfinder_model_bookmark_toggle (XFCE_APPFINDER_MODEL (model), desktop_id, &error);
 
       g_free (desktop_id);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list