glade3 r1674 - in trunk: . gladeui src



Author: jpu
Date: Tue Jan 15 17:57:11 2008
New Revision: 1674
URL: http://svn.gnome.org/viewvc/glade3?rev=1674&view=rev

Log:
2008-01-15  Juan Pablo Ugarte juanpablougarte gmail com>

	* src/glade-window.c:
	  o set palette a default size
	  o do not set desing/editor paned position since by default the window is
	    maximized.

2008-01-15  Ivan Baldo ibaldo adinet com uy

	* gladeui/glade-palette-expander.c: fixed bug #495853
	  "palette takes up too much space"

2008-01-15  Yang Hong <hongyang redflag-linux com>

	* gladeui/glade-project.c: fixed bug #504603
	  "crash while open .glade file from command line arg"

2008-01-15  Cosimo Cecchi <anarki lilik it>

	* gladeui/glade-editor.c: Fixed bug #388869
	  "Property edits dropped due to bad focus-event handling"


Modified:
   trunk/ChangeLog
   trunk/gladeui/glade-editor.c
   trunk/gladeui/glade-palette-expander.c
   trunk/gladeui/glade-project.c
   trunk/src/glade-window.c

Modified: trunk/gladeui/glade-editor.c
==============================================================================
--- trunk/gladeui/glade-editor.c	(original)
+++ trunk/gladeui/glade-editor.c	Tue Jan 15 17:57:11 2008
@@ -416,16 +416,6 @@
 	g_free (new_name);
 }
 
-
-static gboolean
-glade_editor_widget_name_focus_out (GtkWidget           *entry,
-				    GdkEventFocus       *event,
-				    GladeEditor         *editor)
-{
-	glade_editor_widget_name_changed (entry, editor);
-	return FALSE;
-}
-
 static void
 glade_editor_table_attach (GtkWidget *table, GtkWidget *child, gint pos, gint row)
 {
@@ -481,8 +471,8 @@
 			  G_CALLBACK (glade_editor_widget_name_changed),
 			  table->editor);
 	
-	g_signal_connect (G_OBJECT (table->name_entry), "focus-out-event",
-			  G_CALLBACK (glade_editor_widget_name_focus_out),
+	g_signal_connect (G_OBJECT (table->name_entry), "changed",
+			  G_CALLBACK (glade_editor_widget_name_changed),
 			  table->editor);
 
 	glade_editor_table_attach (table->table_widget, label, 0, table->rows);

Modified: trunk/gladeui/glade-palette-expander.c
==============================================================================
--- trunk/gladeui/glade-palette-expander.c	(original)
+++ trunk/gladeui/glade-palette-expander.c	Tue Jan 15 17:57:11 2008
@@ -207,6 +207,7 @@
 	gtk_button_set_focus_on_click (GTK_BUTTON (priv->button), FALSE);
 	priv->arrow = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
 	priv->label = gtk_label_new (NULL);
+	gtk_label_set_ellipsize (GTK_LABEL (priv->label), PANGO_ELLIPSIZE_END);
 	gtk_misc_set_alignment (GTK_MISC (priv->label), 0.0, 0.5);
 
 	alignment = gtk_alignment_new (0.0, 0.5, 1, 1);
@@ -216,7 +217,7 @@
 	gtk_container_add (GTK_CONTAINER (alignment), hbox);
 	gtk_container_add (GTK_CONTAINER (priv->button), alignment);
 	gtk_box_pack_start (GTK_BOX (hbox), priv->arrow, FALSE, FALSE, 0);
-	gtk_box_pack_start (GTK_BOX (hbox), priv->label, FALSE, FALSE, 0);
+	gtk_box_pack_start (GTK_BOX (hbox), priv->label, TRUE, TRUE, 0);
 	
 	gtk_widget_set_parent (priv->button, GTK_WIDGET (expander));
 	

Modified: trunk/gladeui/glade-project.c
==============================================================================
--- trunk/gladeui/glade-project.c	(original)
+++ trunk/gladeui/glade-project.c	Tue Jan 15 17:57:11 2008
@@ -1966,6 +1966,8 @@
 	GladeCommand *cmd;
 	GList   *l;
 
+	g_return_val_if_fail (project != NULL, NULL);
+
 	for (l = project->priv->prev_redo_item; l; l = walk_command (l, FALSE))
 	{
 		cmd = l->data;
@@ -2001,6 +2003,8 @@
 	GladeCommand *cmd;
 	GList   *l;
 
+	g_return_val_if_fail (project != NULL, NULL);
+
 	for (l = project->priv->prev_redo_item ?
 		     project->priv->prev_redo_item->next :
 		     project->priv->undo_stack;

Modified: trunk/src/glade-window.c
==============================================================================
--- trunk/src/glade-window.c	(original)
+++ trunk/src/glade-window.c	Tue Jan 15 17:57:11 2008
@@ -3084,8 +3084,6 @@
 	gtk_paned_pack1 (GTK_PANED (hpaned1), hpaned2, TRUE, FALSE);
 	gtk_paned_pack2 (GTK_PANED (hpaned1), vpaned, FALSE, FALSE);
 
-	/* divider position between design area and editor/inspector */
-	gtk_paned_set_position (GTK_PANED (hpaned1), 350);
 	/* divider position between tree and editor */	
 	gtk_paned_set_position (GTK_PANED (vpaned), 150);
 
@@ -3104,9 +3102,10 @@
 	palette = GTK_WIDGET (glade_app_get_palette ());
 	glade_palette_set_show_selector_button (GLADE_PALETTE (palette), FALSE);
 	gtk_paned_pack1 (GTK_PANED (hpaned2), palette, FALSE, FALSE);
-	gtk_widget_show (palette);
 	setup_dock (&priv->docks[DOCK_PALETTE], palette, 200, 540, 
 		    _("Palette"), "palette", hpaned2, TRUE);
+	gtk_widget_set_size_request (palette, 200, 540);
+	gtk_widget_show (palette);
 
 	/* inspectors */
 	priv->inspectors_notebook = gtk_notebook_new ();	



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