From e2959fe6ceb1167223b72740f89877d52b354ced Mon Sep 17 00:00:00 2001 From: Felipe Corr??a da Silva Sanches Date: Wed, 22 Jun 2011 10:30:13 -0300 Subject: Position the 'Set' button to lower right corner of the object properties panel. http://cuts.thinking-garment.com/262 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ’Set’ button of the ‘Object Properties’ panel is placed high up, next to the ID text-entry box, suggesting it is applied only to the ID box. In reality, ‘Set’ button applies the changes for every text field. (bzr r10341) --- src/dialogs/item-properties.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/dialogs') diff --git a/src/dialogs/item-properties.cpp b/src/dialogs/item-properties.cpp index cd56c2da4..3f757e81f 100644 --- a/src/dialogs/item-properties.cpp +++ b/src/dialogs/item-properties.cpp @@ -131,15 +131,6 @@ sp_item_widget_new (void) // focus is in the id field initially: gtk_widget_grab_focus (GTK_WIDGET (tf)); - /* Button for setting the object's id, label, title and description. */ - pb = gtk_button_new_with_mnemonic (_("_Set")); - gtk_table_attach ( GTK_TABLE (t), pb, 2, 3, 0, 1, - (GtkAttachOptions)( GTK_SHRINK | GTK_FILL ), - (GtkAttachOptions)0, 0, 0 ); - g_signal_connect ( G_OBJECT (pb), "clicked", - G_CALLBACK (sp_item_widget_label_changed), - spw ); - /* Create the label for the object label */ l = gtk_label_new_with_mnemonic (_("_Label:")); gtk_misc_set_alignment (GTK_MISC (l), 1, 0.5); @@ -219,6 +210,13 @@ sp_item_widget_new (void) g_signal_connect (G_OBJECT(cb), "toggled", G_CALLBACK(sp_item_widget_hidden_toggled), spw); gtk_object_set_data(GTK_OBJECT(spw), "hidden", cb); + /* Button for setting the object's id, label, title and description. */ + pb = gtk_button_new_with_mnemonic (_("_Set")); + gtk_box_pack_start (GTK_BOX (hb_cb), pb, TRUE, TRUE, 10); + g_signal_connect ( G_OBJECT (pb), "clicked", + G_CALLBACK (sp_item_widget_label_changed), + spw ); + /* Lock */ // TRANSLATORS: "Lock" is a verb here cb = gtk_check_button_new_with_mnemonic (_("L_ock")); -- cgit v1.2.3