[gnome-applets] stickynotes: Further tweaks to the .ui duplicate name issue.



commit a5cf6262af537ca55a9397d68c339c14a27c9455
Author: Callum McKenzie <callum spooky-possum org>
Date:   Sat Sep 12 14:56:24 2009 +1200

    stickynotes: Further tweaks to the .ui duplicate name issue.
    
    Fixing a few cases where the wrong widget was still being read
    (should have been no crash though).

 stickynotes/stickynotes.ui       |    2 +-
 stickynotes/stickynotes_applet.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/stickynotes/stickynotes.ui b/stickynotes/stickynotes.ui
index b08d1b9..7035355 100644
--- a/stickynotes/stickynotes.ui
+++ b/stickynotes/stickynotes.ui
@@ -131,7 +131,7 @@
                             <property name="visible">True</property>
                             <property name="left_padding">16</property>
                             <child>
-                              <object class="GtkLabel" id="pref_color_label">
+                              <object class="GtkLabel" id="prefs_color_label">
                                 <property name="visible">True</property>
                                 <property name="xalign">0</property>
                                 <property name="label" translatable="yes">Note C_olor:</property>
diff --git a/stickynotes/stickynotes_applet.c b/stickynotes/stickynotes_applet.c
index e89cf8f..4d0c75c 100644
--- a/stickynotes/stickynotes_applet.c
+++ b/stickynotes/stickynotes_applet.c
@@ -216,7 +216,7 @@ void stickynotes_applet_init_prefs(void)
 	stickynotes->w_prefs_color = GTK_WIDGET (gtk_builder_get_object (stickynotes->builder,
 			"default_color"));
 	stickynotes->w_prefs_font_color = GTK_WIDGET (gtk_builder_get_object (stickynotes->builder,
-			"font_color"));
+			"prefs_font_color"));
 	stickynotes->w_prefs_sys_color = GTK_WIDGET (&GTK_CHECK_BUTTON (
 				        gtk_builder_get_object (stickynotes->builder,
 					"sys_color_check"))->toggle_button);



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