[gnome-commander] Replaced deprecated gtk_timeout_remove() with g_source_remove()



commit 6b307aab665ea3de41aec7591fa2e50a47e0ac6c
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Fri Jun 5 00:07:44 2009 +0200

    Replaced deprecated gtk_timeout_remove() with g_source_remove()
---
 ChangeLog                      |    7 +++++++
 src/gnome-cmd-file-list.cc     |    2 +-
 src/gnome-cmd-file-selector.cc |    8 ++++----
 src/gnome-cmd-search-dialog.cc |    2 +-
 4 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 926453a..3bfdfae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-06-05  Piotr Eljasiak  <epiotr use pl>
+
+	* src/gnome-cmd-file-list.cc:
+	* src/gnome-cmd-file-selector.cc:
+	* src/gnome-cmd-search-dialog.cc:
+	Replaced deprecated gtk_timeout_remove() with g_source_remove()
+
 2009-06-04  Piotr Eljasiak  <epiotr use pl>
 
 	* src/gnome-cmd-file-list.cc:
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index be1ec23..ef3d5d6 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -1215,7 +1215,7 @@ static gint on_button_release (GtkWidget *widget, GdkEventButton *event, GnomeCm
         }
         else
             if (event->button == 3)
-                gtk_timeout_remove (fl->priv->right_mb_timeout_id);
+                g_source_remove (fl->priv->right_mb_timeout_id);
     }
 
     return FALSE;
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index ec2cda1..5931da3 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -435,9 +435,9 @@ static void drag_end (GtkWidget *widget, GdkDragContext *context, GnomeCmdFileSe
 
 static void drag_leave (GtkWidget *widget, GdkDragContext *context, guint time, GnomeCmdFileSelector *fs)
 {
-    if (fs->priv->autoscroll_timeout > 0)
+    if (fs->priv->autoscroll_timeout)
     {
-        gtk_timeout_remove (fs->priv->autoscroll_timeout);
+        g_source_remove (fs->priv->autoscroll_timeout);
         fs->priv->autoscroll_timeout = 0;
     }
 
@@ -525,9 +525,9 @@ static void autoscroll_if_appropriate (GnomeCmdFileSelector *fs, gint x, gint y)
     }
     else
     {
-        if (fs->priv->autoscroll_timeout > 0)
+        if (fs->priv->autoscroll_timeout)
         {
-            gtk_timeout_remove (fs->priv->autoscroll_timeout);
+            g_source_remove (fs->priv->autoscroll_timeout);
             fs->priv->autoscroll_timeout = 0;
         }
     }
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index c2c5068..360cdcc 100644
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -461,7 +461,7 @@ static void on_dialog_destroy (GnomeCmdSearchDialog *dialog, gpointer user_data)
     if (data)
     {
         if (!data->search_done)
-            gtk_timeout_remove (data->update_gui_timeout_id);
+            g_source_remove (data->update_gui_timeout_id);
 
         // Stop and wait for search thread to exit
         data->stopped = TRUE;



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