[glade3] 2010-03-20 Javier Jardón <jjardon gnome org>



commit c6117db609280bd3935192ef397582c039a3ce72
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sat Mar 20 14:57:39 2010 -0400

    2010-03-20  Javier Jardón <jjardon gnome org>
    
    	* gladeui/glade-builtins.c: Use g_timeout_add_seconds() instead of g_timeout_add()
    	  (gnome goal bug 581255).

 ChangeLog             |    5 +++++
 gladeui/glade-utils.c |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b25958c..45c72b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-20  Javier Jardón <jjardon gnome org>
+
+	* gladeui/glade-builtins.c: Use g_timeout_add_seconds() instead of g_timeout_add()
+	  (gnome goal bug 581255).
+
 2010-03-20  Marco Diego Aurélio Mesquita <marcodiegomesquita gmail com>
 
 	* src/glade-window.c: Save maximized window state of main window and
diff --git a/gladeui/glade-utils.c b/gladeui/glade-utils.c
index f4e0f25..7d9738b 100644
--- a/gladeui/glade-utils.c
+++ b/gladeui/glade-utils.c
@@ -281,7 +281,7 @@ typedef struct {
 	guint message_id;
 } FlashInfo;
 
-static const guint32 flash_length = 3000;
+static const guint flash_length = 3;
 
 static gboolean
 remove_message_timeout (FlashInfo * fi) 
@@ -320,7 +320,7 @@ glade_util_flash_message (GtkWidget *statusbar, guint context_id, gchar *format,
 	fi->context_id = context_id;	
 	fi->message_id = gtk_statusbar_push (fi->statusbar, fi->context_id, message);
 
-	g_timeout_add (flash_length, (GSourceFunc) remove_message_timeout, fi);
+	g_timeout_add_seconds (flash_length, (GtkFunction) remove_message_timeout, fi);
 
 	g_free (message);
 }



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