[glade3] * gladeui/glade-project.c: Removing frame shadow (and label) from project preferences (bug 574098).



commit cdb756908ceb6cd95899093a8c8445af85379f52
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Fri Dec 17 05:10:47 2010 +0900

    	* gladeui/glade-project.c: Removing frame shadow (and label) from project preferences (bug 574098).

 ChangeLog               |    2 ++
 gladeui/glade-project.c |    9 ++-------
 2 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 58a7f18..35c4d42 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -35,6 +35,8 @@
 
 	* plugins/gtk+/gtk+.xml.in: Setting dialog type-hint default to Dialog (closes old bug 459917)
 
+	* gladeui/glade-project.c: Removing frame shadow (and label) from project preferences (bug 574098).
+
 2010-12-15  Tristan Van Berkom <tristanvb openismus com>
 
 	* gladeui/glade-project.c: Cleanup glade_project_remove_object(), make sure row_deleted is
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index 9f4e949..56ca273 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -4087,18 +4087,13 @@ glade_project_build_prefs_box (GladeProject *project)
 		*sizegroup2 = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL),
 		*sizegroup3 = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
 
-	string = g_strdup_printf ("<big><b>%s</b></big>", _("Set options in your project"));
 	main_frame = gtk_frame_new (NULL);
+	gtk_frame_set_shadow_type (GTK_FRAME (main_frame), GTK_SHADOW_NONE);
 	main_alignment = gtk_alignment_new (0.5F, 0.5F, 0.8F, 0.8F);
 	main_box = gtk_vbox_new (FALSE, 0);
 
-	gtk_alignment_set_padding (GTK_ALIGNMENT (main_alignment), 12, 0, 4, 0);
+	gtk_alignment_set_padding (GTK_ALIGNMENT (main_alignment), 0, 0, 4, 0);
 
-	label = gtk_label_new (string);
-	g_free (string);
-	gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
-
-	gtk_frame_set_label_widget (GTK_FRAME (main_frame), label);
 	gtk_container_add (GTK_CONTAINER (main_alignment), main_box);
 	gtk_container_add (GTK_CONTAINER (main_frame), main_alignment);
 



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