[Xfce4-commits] [xfce/exo] 01/01: Resolve gdk_threads_* deprecated warnings, thanks f2404! https://github.com/xfce-mirror/exo/pull/5

noreply at xfce.org noreply at xfce.org
Sun Aug 21 00:03:20 CEST 2016


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

bluesabre pushed a commit to branch master
in repository xfce/exo.

commit 08435a6ac07f6437c707bf281a0c5b8c96a4fd2e
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat Aug 20 18:02:46 2016 -0400

    Resolve gdk_threads_* deprecated warnings, thanks f2404!
    https://github.com/xfce-mirror/exo/pull/5
---
 exo/exo-tree-view.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/exo/exo-tree-view.c b/exo/exo-tree-view.c
index 137ee96..8c8564f 100644
--- a/exo/exo-tree-view.c
+++ b/exo/exo-tree-view.c
@@ -549,9 +549,9 @@ exo_tree_view_motion_notify_event (GtkWidget      *widget,
                   tree_view->priv->single_click_timeout_state = event->state;
 
                   /* schedule a new single-click timeout */
-                  tree_view->priv->single_click_timeout_id = g_timeout_add_full (G_PRIORITY_LOW, tree_view->priv->single_click_timeout,
-                                                                                 exo_tree_view_single_click_timeout, tree_view,
-                                                                                 exo_tree_view_single_click_timeout_destroy);
+                  tree_view->priv->single_click_timeout_id = gdk_threads_add_timeout_full (G_PRIORITY_LOW, tree_view->priv->single_click_timeout,
+                                                                                           exo_tree_view_single_click_timeout, tree_view,
+                                                                                           exo_tree_view_single_click_timeout_destroy);
                 }
             }
           else
@@ -655,8 +655,6 @@ exo_tree_view_single_click_timeout (gpointer user_data)
   GList             *rows;
   GList             *lp;
 
-  GDK_THREADS_ENTER ();
-
   /* verify that we are in single-click mode, have focus and a hover path */
   if (gtk_widget_has_focus (GTK_WIDGET (tree_view)) && tree_view->priv->single_click && tree_view->priv->hover_path != NULL)
     {
@@ -747,8 +745,6 @@ exo_tree_view_single_click_timeout (gpointer user_data)
         }
     }
 
-  GDK_THREADS_LEAVE ();
-
   return FALSE;
 }
 

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


More information about the Xfce4-commits mailing list