[atomix/wip/gtk3-port] Preview: center preview widget
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atomix/wip/gtk3-port] Preview: center preview widget
- Date: Mon, 12 Jan 2015 23:56:05 +0000 (UTC)
commit f3d03c99e7b32c614136fd81f62b3429ce155e1d
Author: Robert Roth <robert roth off gmail com>
Date: Tue Jan 13 01:55:26 2015 +0200
Preview: center preview widget
src/main.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 37edb9c..ae2a5a1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -619,6 +619,9 @@ static GtkWidget *create_goal_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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]