gnome-commander r1739 - in branches/gcmd-1-3: . src



Author: epiotr
Date: Tue Apr 29 21:02:05 2008
New Revision: 1739
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1739&view=rev

Log:
Replacing obsoleted gtk_timeout_add() with g_timeout_add()

Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/src/dirlist.cc
   branches/gcmd-1-3/src/gnome-cmd-con-ftp.cc
   branches/gcmd-1-3/src/gnome-cmd-con.cc
   branches/gcmd-1-3/src/gnome-cmd-delete-dialog.cc
   branches/gcmd-1-3/src/gnome-cmd-file-list.cc
   branches/gcmd-1-3/src/gnome-cmd-file-props-dialog.cc
   branches/gcmd-1-3/src/gnome-cmd-file-selector.cc
   branches/gcmd-1-3/src/gnome-cmd-search-dialog.cc
   branches/gcmd-1-3/src/gnome-cmd-xfer.cc

Modified: branches/gcmd-1-3/src/dirlist.cc
==============================================================================
--- branches/gcmd-1-3/src/dirlist.cc	(original)
+++ branches/gcmd-1-3/src/dirlist.cc	Tue Apr 29 21:02:05 2008
@@ -105,7 +105,7 @@
                                         (GnomeVFSAsyncDirectoryLoadCallback)on_files_listed,
                                         dir);
 
-    gtk_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GtkFunction)update_list_progress, dir);
+    g_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GSourceFunc) update_list_progress, dir);
 }
 
 

Modified: branches/gcmd-1-3/src/gnome-cmd-con-ftp.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-con-ftp.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-con-ftp.cc	Tue Apr 29 21:02:05 2008
@@ -107,7 +107,7 @@
     //~ gnome_cmd_con_set_default_dir (con, dir);
     //~ gnome_cmd_con_set_cwd (con, dir);
 
-    gtk_timeout_add (1, (GtkFunction) start_get_file_info, con);
+    g_timeout_add (1, (GSourceFunc) start_get_file_info, con);
 }
 
 

Modified: branches/gcmd-1-3/src/gnome-cmd-con.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-con.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-con.cc	Tue Apr 29 21:02:05 2008
@@ -279,7 +279,7 @@
     if (con->state != CON_STATE_OPEN)
         klass->open (con);
 
-    gtk_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GtkFunction)check_con_open_progress, con);
+    g_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GSourceFunc) check_con_open_progress, con);
 }
 
 

Modified: branches/gcmd-1-3/src/gnome-cmd-delete-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-delete-dialog.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-delete-dialog.cc	Tue Apr 29 21:02:05 2008
@@ -251,7 +251,7 @@
     create_delete_progress_win (data);
 
     data->thread = g_thread_create ((GThreadFunc) perform_delete_operation, data, FALSE, NULL);
-    gtk_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GtkFunction) update_delete_status_widgets, data);
+    g_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GSourceFunc) update_delete_status_widgets, data);
 }
 
 

Modified: branches/gcmd-1-3/src/gnome-cmd-file-list.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-list.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-list.cc	Tue Apr 29 21:02:05 2008
@@ -1078,7 +1078,7 @@
 
                             fl->priv->right_mb_down_file = finfo;
                             fl->priv->right_mb_timeout_id =
-                                gtk_timeout_add (POPUP_TIMEOUT, (GtkFunction) on_right_mb_timeout, fl);
+                                g_timeout_add (POPUP_TIMEOUT, (GSourceFunc) on_right_mb_timeout, fl);
                         }
                         else
                             show_file_popup (fl, event);

Modified: branches/gcmd-1-3/src/gnome-cmd-file-props-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-props-dialog.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-props-dialog.cc	Tue Apr 29 21:02:05 2008
@@ -153,7 +153,7 @@
 {
     data->stop = TRUE;
 
-    gtk_timeout_add (1, (GtkFunction)join_thread_func, data);
+    g_timeout_add (1, (GSourceFunc) join_thread_func, data);
 }
 
 
@@ -184,7 +184,7 @@
 
     data->thread = g_thread_create ((PthreadFunc) calc_tree_size_func, data, TRUE, NULL);
 
-    gtk_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GtkFunction) update_count_status, data);
+    g_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GSourceFunc) update_count_status, data);
 }
 
 

Modified: branches/gcmd-1-3/src/gnome-cmd-file-selector.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-selector.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-selector.cc	Tue Apr 29 21:02:05 2008
@@ -594,7 +594,7 @@
         if (fs->priv->autoscroll_timeout) return;
         fs->priv->autoscroll_dir = FALSE;
         fs->priv->autoscroll_y = y;
-        fs->priv->autoscroll_timeout = gtk_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GtkFunction)do_scroll, fs);
+        fs->priv->autoscroll_timeout = g_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GSourceFunc) do_scroll, fs);
     }
     else if (y > smax)
     {
@@ -602,7 +602,7 @@
         fs->priv->autoscroll_dir = TRUE;
         fs->priv->autoscroll_y = y;
         fs->priv->autoscroll_timeout =
-            gtk_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GtkFunction)do_scroll, fs);
+            g_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GSourceFunc) do_scroll, fs);
     }
     else
     {
@@ -1758,7 +1758,7 @@
         fs->priv->con_opening = con;
 
         create_con_open_progress_dialog (fs);
-        gtk_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GtkFunction)update_con_open_progress, fs);
+        g_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GSourceFunc) update_con_open_progress, fs);
 
         gnome_cmd_con_open (con);
     }

Modified: branches/gcmd-1-3/src/gnome-cmd-search-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-search-dialog.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-search-dialog.cc	Tue Apr 29 21:02:05 2008
@@ -464,7 +464,7 @@
         // Stop and wait for search thread to exit
         data->stopped = TRUE;
         data->dialog_destroyed = TRUE;
-        gtk_timeout_add (1, (GtkFunction) join_thread_func, data);
+        g_timeout_add (1, (GSourceFunc) join_thread_func, data);
 
         // Unref all directories which contained matching files from last search
         if (data->pdata.mutex != NULL)
@@ -555,9 +555,9 @@
     data->thread = g_thread_create ((GThreadFunc) perform_search_operation, data, TRUE, NULL);
 
     gtk_widget_show (data->dialog->priv->pbar);
-    data->update_gui_timeout_id = gtk_timeout_add (gnome_cmd_data_get_gui_update_rate (),
-                                                   (GtkFunction)update_search_status_widgets,
-                                                   dialog->priv->data);
+    data->update_gui_timeout_id = g_timeout_add (gnome_cmd_data_get_gui_update_rate (),
+                                                 (GSourceFunc) update_search_status_widgets,
+                                                 dialog->priv->data);
     return FALSE;
 }
 
@@ -568,7 +568,7 @@
  */
 static void on_search (GtkButton *button, GnomeCmdSearchDialog *dialog)
 {
-    gtk_timeout_add (1, (GtkFunction)start_search, dialog);
+    g_timeout_add (1, (GSourceFunc) start_search, dialog);
 
     gtk_widget_set_sensitive (dialog->priv->search_button, FALSE);
     gtk_widget_set_sensitive (dialog->priv->goto_button, FALSE);

Modified: branches/gcmd-1-3/src/gnome-cmd-xfer.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-xfer.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-xfer.cc	Tue Apr 29 21:02:05 2008
@@ -441,7 +441,7 @@
                                                   xfer_callback,
                                                   data);
 
-    gtk_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GtkFunction)update_xfer_gui_func, data);
+    g_timeout_add (gnome_cmd_data_get_gui_update_rate (), (GSourceFunc) update_xfer_gui_func, data);
 }
 
 
@@ -527,7 +527,7 @@
                                    xfer_callback,
                                    data);
 
-    gtk_timeout_add (gnome_cmd_data_get_gui_update_rate (),
-                     (GtkFunction)update_xfer_gui_func,
-                     data);
+    g_timeout_add (gnome_cmd_data_get_gui_update_rate (),
+                   (GSourceFunc) update_xfer_gui_func,
+                   data);
 }



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