[gnome-packagekit] Better default position for the package update description vpane



commit 33a03ff6f610e043b430752d1b7a2728b1c04c2d
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Tue Mar 29 14:14:43 2011 -0400

    Better default position for the package update description vpane
    
    Signed-off-by: Richard Hughes <richard hughsie com>

 data/gpk-update-viewer.ui |    2 ++
 src/gpk-update-viewer.c   |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/data/gpk-update-viewer.ui b/data/gpk-update-viewer.ui
index 43450d8..9835311 100644
--- a/data/gpk-update-viewer.ui
+++ b/data/gpk-update-viewer.ui
@@ -136,6 +136,8 @@
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="orientation">vertical</property>
+                <property name="position">800</property>
+                <property name="position_set">True</property>
                 <child>
                   <object class="GtkScrolledWindow" id="scrolledwindow_updates">
                     <property name="visible">True</property>
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index f6770e8..df97a50 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -2925,6 +2925,7 @@ gpk_update_viewer_vpaned_realized_cb (GtkWidget *widget, gpointer user_data)
 	GtkRequisition req;
 	gtk_widget_get_preferred_size (widget, &req, NULL);
 	g_debug ("req.height=%i", req.height);
+	// FIXME: this is never executed, it falls back on values from the .ui file
 	if (req.height != 0)
 		gtk_paned_set_position (GTK_PANED (widget), 166);
 }



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