[Nautilus-list] [PATCH] removes the calls to gtk_timeout_add



hi

	this is a simple patch that substitutes all the calls to
gtk_timeout_add and replaces them by g_timeout_add, i did this in the
files in libnautilus-private, if you're interested in this kind of
patches i can go all over the code.

regards, 
Diego


Index: nautilus-dnd.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-dnd.c,v
retrieving revision 1.2
diff -u -r1.2 nautilus-dnd.c
--- nautilus-dnd.c	2002/02/19 09:11:10	1.2
+++ nautilus-dnd.c	2002/03/02 17:58:55
@@ -700,7 +700,7 @@
 			drag_info->start_auto_scroll_in = eel_get_system_time() 
 				+ AUTOSCROLL_INITIAL_DELAY;
 			
-			drag_info->auto_scroll_timeout_id = gtk_timeout_add
+			drag_info->auto_scroll_timeout_id = g_timeout_add
 				(AUTOSCROLL_TIMEOUT_INTERVAL,
 				 callback,
 			 	 user_data);
Index: nautilus-icon-container.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-icon-container.c,v
retrieving revision 1.263
diff -u -r1.263 nautilus-icon-container.c
--- nautilus-icon-container.c	2002/03/01 17:15:26	1.263
+++ nautilus-icon-container.c	2002/03/02 17:59:11
@@ -563,7 +563,7 @@
 
 	details->keyboard_icon_to_reveal = icon;
 	details->keyboard_icon_reveal_timer_id
-		= gtk_timeout_add (KEYBOARD_ICON_REVEAL_TIMEOUT,
+		= g_timeout_add (KEYBOARD_ICON_REVEAL_TIMEOUT,
 				   keyboard_icon_reveal_timeout_callback,
 				   container);
 }
@@ -1579,7 +1579,7 @@
 	band_info->active = TRUE;
 
 	if (band_info->timer_id == 0) {
-		band_info->timer_id = gtk_timeout_add
+		band_info->timer_id = g_timeout_add
 			(RUBBERBAND_TIMEOUT_INTERVAL,
 			 rubberband_timeout_callback,
 			 container);
@@ -3470,7 +3470,7 @@
 			 * context menu click or a drag start.
 			 */
 			if (details->context_menu_timeout_id == 0) {
-				details->context_menu_timeout_id = gtk_timeout_add
+				details->context_menu_timeout_id = g_timeout_add
 					(CONTEXT_MENU_TIMEOUT_INTERVAL, 
 					 show_context_menu_callback, 
 					 context_menu_parameters_new (container, event));
Index: nautilus-drag-window.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-drag-window.c,v
retrieving revision 1.12
diff -u -r1.12 nautilus-drag-window.c
--- nautilus-drag-window.c	2002/02/25 23:16:39	1.12
+++ nautilus-drag-window.c	2002/03/02 17:59:16
@@ -160,7 +160,7 @@
 	if (details != NULL) {
 		remove_focus_timeout (window);
 		details->focus_timeout_tag
-		    = gtk_timeout_add (WINDOW_FOCUS_TIMEOUT,
+		    = g_timeout_add (WINDOW_FOCUS_TIMEOUT,
 				       focus_timeout_callback, window);
 	}
 }
Index: nautilus-file-operations-progress.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-file-operations-progress.c,v
retrieving revision 1.34
diff -u -r1.34 nautilus-file-operations-progress.c
--- nautilus-file-operations-progress.c	2002/02/25 18:28:38	1.34
+++ nautilus-file-operations-progress.c	2002/03/02 17:59:16
@@ -450,7 +450,7 @@
 	/* No cancel button once the operation is done. */
 	gtk_dialog_set_response_sensitive (GTK_DIALOG (progress), GTK_RESPONSE_CANCEL, FALSE);
 
-	progress->details->delayed_close_timeout_id = gtk_timeout_add
+	progress->details->delayed_close_timeout_id = g_timeout_add
 		(MINIMUM_TIME_UP - time_up,
 		 delayed_close_callback,
 		 progress);
Index: nautilus-volume-monitor.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-volume-monitor.c,v
retrieving revision 1.122
diff -u -r1.122 nautilus-volume-monitor.c
--- nautilus-volume-monitor.c	2002/02/23 11:44:35	1.122
+++ nautilus-volume-monitor.c	2002/03/02 17:59:23
@@ -1301,7 +1301,7 @@
 
 	/* Add a timer function to check for status change in mounted volumes periodically */
 	monitor->details->mount_volume_timer_id = 
-		gtk_timeout_add (CHECK_STATUS_INTERVAL,
+		g_timeout_add (CHECK_STATUS_INTERVAL,
 				 (GtkFunction) mount_volumes_check_status,
 				 monitor);
 }
Index: nautilus-directory-background.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-directory-background.c,v
retrieving revision 1.71
diff -u -r1.71 nautilus-directory-background.c
--- nautilus-directory-background.c	2002/02/25 04:31:01	1.71
+++ nautilus-directory-background.c	2002/03/02 17:59:29
@@ -511,7 +511,7 @@
 	    	 * i.e. after we get this event. How long afterwards is not knowable - we
 	    	 * guess half a second. Fixing this requires changing the capplet.
 	    	 */
-	    	gtk_timeout_add (500, (GtkFunction) (call_settings_changed), background);
+	    	g_timeout_add (500, (GtkFunction) (call_settings_changed), background);
 	}
 
 	return GDK_FILTER_CONTINUE;
Index: nautilus-thumbnails.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-thumbnails.c,v
retrieving revision 1.36
diff -u -r1.36 nautilus-thumbnails.c
--- nautilus-thumbnails.c	2002/01/21 22:49:33	1.36
+++ nautilus-thumbnails.c	2002/03/02 17:59:30
@@ -416,7 +416,7 @@
 		}
 	
 		if (thumbnail_timeout_id == 0) {
-			thumbnail_timeout_id = gtk_timeout_add
+			thumbnail_timeout_id = g_timeout_add
 				(400, make_thumbnails, NULL);
 		}
 	}


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