Re: Simple patch (Lets try again)



Ok i removed the clear id in this patch. Can you please commit if the
patch is ok.

dave
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/nautilus/ChangeLog,v
retrieving revision 1.5640
diff -p -u -r1.5640 ChangeLog
--- ChangeLog	6 Jan 2003 15:27:55 -0000	1.5640
+++ ChangeLog	6 Jan 2003 16:30:04 -0000
@@ -1,3 +1,12 @@
+2003-01-06 David Bordoley <bordoley msu edu>
+
+	* src/nautilus-window.c
+	* src/nautilus-window.h
+	Removed statusbar timeout
+
+	*libnautilus-private/nautilus-global-preferences.c
+	Removed unnecessary include
+
 2003-01-06  Alexander Larsson  <alexl redhat com>
 
 	* src/file-manager/nautilus-directory-view-ui.xml:
Index: libnautilus-private/nautilus-global-preferences.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-global-preferences.c,v
retrieving revision 1.205
diff -p -u -r1.205 nautilus-global-preferences.c
--- libnautilus-private/nautilus-global-preferences.c	5 Nov 2002 18:34:24 -0000	1.205
+++ libnautilus-private/nautilus-global-preferences.c	6 Jan 2003 16:30:23 -0000
@@ -29,7 +29,6 @@
 #include "nautilus-file-utilities.h"
 #include "nautilus-file.h"
 #include "nautilus-icon-factory.h"
-#include "nautilus-sidebar-functions.h"
 #include <eel/eel-enumeration.h>
 #include <eel/eel-glib-extensions.h>
 #include <eel/eel-gtk-extensions.h>
Index: src/nautilus-window.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-window.c,v
retrieving revision 1.402
diff -p -u -r1.402 nautilus-window.c
--- src/nautilus-window.c	5 Dec 2002 02:42:53 -0000	1.402
+++ src/nautilus-window.c	6 Jan 2003 16:30:38 -0000
@@ -87,7 +87,6 @@
  */
 #include "nautilus-desktop-window.h"
 
-#define STATUS_BAR_CLEAR_TIMEOUT 10000	/* milliseconds */
 #define MAX_HISTORY_ITEMS 50
 
 /* FIXME bugzilla.gnome.org 41245: hardwired sizes */
@@ -338,7 +337,6 @@ nautilus_window_clear_status (gpointer c
 	window = NAUTILUS_WINDOW (callback_data);
 
 	bonobo_ui_component_set_status (window->details->status_ui, NULL, NULL);
-	window->status_bar_clear_id = 0;
 
 	return FALSE;
 }
@@ -346,17 +344,10 @@ nautilus_window_clear_status (gpointer c
 void
 nautilus_window_set_status (NautilusWindow *window, const char *text)
 {
-	if (window->status_bar_clear_id != 0) {
-		g_source_remove (window->status_bar_clear_id);
-	}
-
 	if (text != NULL && text[0] != '\0') {
 		bonobo_ui_component_set_status (window->details->status_ui, text, NULL);
-		window->status_bar_clear_id = g_timeout_add
-			(STATUS_BAR_CLEAR_TIMEOUT, nautilus_window_clear_status, window);
 	} else {
 		nautilus_window_clear_status (window);
-		window->status_bar_clear_id = 0;
 	}
 }
 
@@ -969,10 +960,6 @@ nautilus_window_finalize (GObject *objec
 	}
 	if (window->last_location_bookmark != NULL) {
 		g_object_unref (window->last_location_bookmark);
-	}
-
-	if (window->status_bar_clear_id != 0) {
-		g_source_remove (window->status_bar_clear_id);
 	}
 
 	bonobo_object_unref (window->details->ui_container);
Index: src/nautilus-window.h
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-window.h,v
retrieving revision 1.104
diff -p -u -r1.104 nautilus-window.h
--- src/nautilus-window.h	21 Sep 2002 16:31:23 -0000	1.104
+++ src/nautilus-window.h	6 Jan 2003 16:30:39 -0000
@@ -85,8 +85,7 @@ struct NautilusWindow {
         
 	char *last_geometry;
 	
-        guint status_bar_clear_id;
-        guint save_geometry_timeout_id;
+       guint save_geometry_timeout_id;
 	  
         /** CORBA-related elements **/
         NautilusApplication *application;


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