[gnome-control-center] I noticed that gnome-about-me silently forgets all information I put into it and on the next run all



commit 314ab51f6f4402e55f8d179b8a8e94785d69d5e4
Author: Michal Schmidt <mschmidt redhat com>
Date:   Tue Mar 23 19:28:42 2010 +0100

    I noticed that gnome-about-me silently forgets all information I put
    into it and on the next run all fields are empty again.
    
    The GTK+ 2.19.2 release notes say:
    * Bugs fixed:
      ...
      591085 GtkBuilder object ID bounded to GtkWidget "name" property
    
    Apparently gtk_widget_get_name() was never supposed to return the ID of
    the widget, so about_me_focus_out() worked only by mistake until GTK+
    fixed the "bug".

 capplets/about-me/gnome-about-me.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/capplets/about-me/gnome-about-me.c b/capplets/about-me/gnome-about-me.c
index 755dba8..3ff5466 100644
--- a/capplets/about-me/gnome-about-me.c
+++ b/capplets/about-me/gnome-about-me.c
@@ -279,7 +279,7 @@ about_me_focus_out (GtkWidget *widget, GdkEventFocus *event, GnomeAboutMe *unuse
 	if (me == NULL)
 		return FALSE;
 
-	wid = gtk_widget_get_name (widget);
+	wid = gtk_buildable_get_name (GTK_BUILDABLE (widget));
 
 	if (wid == NULL)
 		return FALSE;



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