[gedit] file-browser: fix tree view cast



commit 69688c4a60bae1cc98bf2c472cd83d8140390241
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Tue Nov 27 18:25:07 2018 +0100

    file-browser: fix tree view cast

 plugins/filebrowser/gedit-file-browser-widget.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/filebrowser/gedit-file-browser-widget.c b/plugins/filebrowser/gedit-file-browser-widget.c
index 476467311..e0dc38c89 100644
--- a/plugins/filebrowser/gedit-file-browser-widget.c
+++ b/plugins/filebrowser/gedit-file-browser-widget.c
@@ -2630,7 +2630,7 @@ static gboolean
 on_treeview_popup_menu (GeditFileBrowserView   *treeview,
                        GeditFileBrowserWidget *obj)
 {
-       return popup_menu (obj, treeview, NULL, gtk_tree_view_get_model (GTK_TREE_VIEW (treeview)));
+       return popup_menu (obj, GTK_TREE_VIEW (treeview), NULL, gtk_tree_view_get_model (GTK_TREE_VIEW 
(treeview)));
 }
 
 static gboolean
@@ -2640,7 +2640,7 @@ on_treeview_button_press_event (GeditFileBrowserView   *treeview,
 {
        if (event->type == GDK_BUTTON_PRESS && event->button == GDK_BUTTON_SECONDARY)
                return popup_menu (obj,
-                                  treeview,
+                                  GTK_TREE_VIEW (treeview),
                                   event,
                                   gtk_tree_view_get_model (GTK_TREE_VIEW (treeview)));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]