[gnome-nibbles] Implement packing with AspectFrame Still needs about 5-10 pixels of tweaking on the bottom
- From: Bryan Quigley <bryanquigs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles] Implement packing with AspectFrame Still needs about 5-10 pixels of tweaking on the bottom
- Date: Sun, 20 Oct 2013 02:57:29 +0000 (UTC)
commit 30e11a7552618137f4ed6a7914a438c13e35acce
Author: Bryan Quigley <bryanquigs src gnome org>
Date: Sat Oct 19 22:56:10 2013 -0400
Implement packing with AspectFrame
Still needs about 5-10 pixels of tweaking on the bottom
src/main.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index b9d8ac8..86d6c31 100644
--- a/src/main.c
+++ b/src/main.c
@@ -644,6 +644,7 @@ setup_window (void)
{
GtkWidget *vbox;
GtkWidget *menubar;
+ GtkWidget *packing;
GtkUIManager *ui_manager;
GtkAccelGroup *accel_group;
@@ -693,7 +694,16 @@ setup_window (void)
g_signal_connect (G_OBJECT (window), "focus_out_event",
G_CALLBACK (show_cursor_cb), NULL);
- gtk_box_pack_start (GTK_BOX (vbox), clutter_widget, TRUE, TRUE, 0);
+ packing = gtk_aspect_frame_new (NULL,
+ 0.5,
+ 0.5,
+ 1.38, //between 1.398176292 and 1.388888889
+ FALSE);
+
+
+ gtk_container_add( GTK_CONTAINER(packing), clutter_widget);
+
+ gtk_box_pack_start (GTK_BOX (vbox), packing, FALSE, TRUE, 0);
statusbar = gtk_statusbar_new ();
gtk_box_pack_start (GTK_BOX (vbox), statusbar, FALSE, FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]