[four-in-a-row] Fix the size of the undo/hint/new-game buttons
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row] Fix the size of the undo/hint/new-game buttons
- Date: Fri, 31 Jan 2014 14:10:23 +0000 (UTC)
commit a016029007470ef70612ec0b6168cf0235459a07
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Fri Jan 31 09:03:58 2014 +0200
Fix the size of the undo/hint/new-game buttons
https://bugzilla.gnome.org/show_bug.cgi?id=723346
src/main.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 59f9502..feeda05 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1234,12 +1234,16 @@ create_app (void)
gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 6);
undo_button = gtk_button_new ();
+ gtk_widget_set_valign (undo_button, GTK_ALIGN_CENTER);
+ gtk_widget_set_halign (undo_button, GTK_ALIGN_CENTER);
gtk_button_set_image (GTK_BUTTON (undo_button), image);
gtk_button_set_relief (GTK_BUTTON (undo_button), GTK_RELIEF_NONE);
gtk_actionable_set_action_name (GTK_ACTIONABLE (undo_button), "app.undo-move");
gtk_box_pack_start (GTK_BOX (vbox), undo_button, FALSE, FALSE, 0);
hint_button = gtk_button_new ();
+ gtk_widget_set_valign (hint_button, GTK_ALIGN_CENTER);
+ gtk_widget_set_halign (hint_button, GTK_ALIGN_CENTER);
image = gtk_image_new_from_icon_name ("dialog-question-symbolic", GTK_ICON_SIZE_DIALOG);
gtk_button_set_image (GTK_BUTTON (hint_button), image);
gtk_button_set_relief (GTK_BUTTON (hint_button), GTK_RELIEF_NONE);
@@ -1247,6 +1251,8 @@ create_app (void)
gtk_box_pack_start (GTK_BOX (vbox), hint_button, FALSE, FALSE, 0);
new_game_button = gtk_button_new ();
+ gtk_widget_set_valign (new_game_button, GTK_ALIGN_CENTER);
+ gtk_widget_set_halign (new_game_button, GTK_ALIGN_CENTER);
image = gtk_image_new_from_icon_name ("view-refresh-symbolic", GTK_ICON_SIZE_DIALOG);
gtk_button_set_image (GTK_BUTTON (new_game_button), image);
gtk_button_set_relief (GTK_BUTTON (new_game_button), GTK_RELIEF_NONE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]