[anjuta] search: Move close button to the right edge (see #665945)



commit 90950cc5281093a55a2b53423a082e9ed5dfe3dc
Author: Johannes Schmid <jhs gnome org>
Date:   Sun Jan 1 22:08:51 2012 +0100

    search: Move close button to the right edge (see #665945)

 plugins/document-manager/search-box.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/plugins/document-manager/search-box.c b/plugins/document-manager/search-box.c
index 18682ea..63b1fe5 100644
--- a/plugins/document-manager/search-box.c
+++ b/plugins/document-manager/search-box.c
@@ -1033,7 +1033,13 @@ search_box_init (SearchBox *object)
 	gtk_grid_attach (GTK_GRID (private->grid), private->previous_button, 2, 0, 1, 1);
 	gtk_grid_attach (GTK_GRID (private->grid), private->next_button, 3, 0, 1, 1);
 
-	gtk_grid_attach (GTK_GRID (private->grid), private->close_button, 4, 0, 1, 1);
+	gtk_grid_attach_next_to (GTK_GRID (private->grid),
+	                         private->close_button,
+	                         private->next_button,
+	                         GTK_POS_RIGHT, 1, 1);
+	gtk_widget_set_hexpand(private->close_button, TRUE);
+	gtk_widget_set_halign(private->close_button,
+	                      GTK_ALIGN_END);
 
 	/* Add Replace elements to search box on 2nd level */
 	gtk_grid_attach (GTK_GRID (private->grid), private->replace_entry, 1, 1, 1, 1);



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