[atomix/wip/gtk3-port] Readd main window resizability
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atomix/wip/gtk3-port] Readd main window resizability
- Date: Tue, 13 Jan 2015 00:57:16 +0000 (UTC)
commit 3ac397fddbdd17edc777b8f67bb250c2c7cf2f1f
Author: Robert Roth <robert roth off gmail com>
Date: Tue Jan 13 02:01:39 2015 +0200
Readd main window resizability
src/main.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index ae2a5a1..80ff23c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -606,6 +606,9 @@ static GtkWidget *create_board_widget (GtkWidget **fixed)
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_container_add (GTK_CONTAINER (frame), GTK_WIDGET (*fixed));
+ gtk_widget_set_halign (GTK_WIDGET (*fixed), GTK_ALIGN_CENTER);
+ gtk_widget_set_valign (GTK_WIDGET (*fixed), GTK_ALIGN_CENTER);
+
return frame;
}
@@ -813,7 +816,7 @@ int main (int argc, char *argv[])
game_init ();
gtk_widget_set_size_request (GTK_WIDGET (app->mainwin), 678, 520);
- gtk_window_set_resizable (GTK_WINDOW (app->mainwin), FALSE);
+ //gtk_window_set_resizable (GTK_WINDOW (app->mainwin), FALSE);
gtk_widget_show (app->mainwin);
gtk_main ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]