[glade] * gladeui/glade-editor.c: Make reset/docs buttons insensitive by default.



commit e05916c1f03dbab8c5a4536e1650c772736d1ccb
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Thu Feb 3 23:41:33 2011 +0900

    	* gladeui/glade-editor.c: Make reset/docs buttons insensitive by default.

 ChangeLog              |    4 +++-
 gladeui/glade-editor.c |    4 ++++
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index bbe9360..a2ef5b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,7 +5,7 @@
 	has supported this ever since supporting <attributes>, only just adding a GtkFontSelectionDialog
 	to do this from Glade now.
 
-	* gladeui/glade-editor-property.c, gladeui/glade-property-class.c, 
+	* gladeui/glade-editor-property.c, gladeui/glade-property-class.c,
 	gladeui/glade-widget-adaptor.c: Added support for GdkRGBA properties
 
 	* gladeui/glade-property.c: When loading properties, set the enabled flag at load time before
@@ -15,6 +15,8 @@
 	GtkColorButton adaptor (so that the workspace driven dialog can also set rgba properties), and
 	make rgba properties optional and disabled by default.
 
+	* gladeui/glade-editor.c: Make reset/docs buttons insensitive by default.
+
 2011-02-02  Juan Pablo Ugarte <juanpablougarte gmail com>
 
 	* gladeui/glade-design-layout.c:
diff --git a/gladeui/glade-editor.c b/gladeui/glade-editor.c
index debca58..25f19ff 100644
--- a/gladeui/glade-editor.c
+++ b/gladeui/glade-editor.c
@@ -494,6 +494,10 @@ glade_editor_init (GladeEditor * editor)
 
   gtk_widget_hide (GTK_WIDGET (editor));
 
+  /* Initially there is no widget loaded so these need to be insensitive */
+  gtk_widget_set_sensitive (editor->priv->reset_button, FALSE);
+  gtk_widget_set_sensitive (editor->priv->info_button, FALSE);
+
   gtk_widget_set_no_show_all (GTK_WIDGET (editor), TRUE);
 }
 



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