[emerillon/gtk3: 3/5] Use get_preferred_width instead of get_preferred_size



commit afc657383e434c56fab7869d9547defc39313cf8
Author: Johannes Schmid <jhs gnome org>
Date:   Sat Jun 25 13:56:33 2011 +0200

    Use get_preferred_width instead of get_preferred_size

 emerillon/sidebar.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/emerillon/sidebar.c b/emerillon/sidebar.c
index 980be91..7bdb2e7 100644
--- a/emerillon/sidebar.c
+++ b/emerillon/sidebar.c
@@ -260,7 +260,7 @@ emerillon_sidebar_select_button_press_cb (GtkWidget *widget,
 
   if (event->button == 1)
     {
-      GtkRequisition requisition;
+      gint preferred_width;
       gint width;
 
       GtkAllocation allocation;
@@ -268,9 +268,10 @@ emerillon_sidebar_select_button_press_cb (GtkWidget *widget,
       width = allocation.width;
 
       gtk_widget_set_size_request (sidebar->priv->menu, -1, -1);
-      gtk_widget_get_preferred_size(sidebar->priv->menu, NULL, &requisition);
+      gtk_widget_get_preferred_width(sidebar->priv->menu, NULL, 
+          &preferred_width);
       gtk_widget_set_size_request (sidebar->priv->menu,
-          MAX (width, requisition.width), -1);
+          MAX (width, preferred_width), -1);
 
       gtk_widget_grab_focus (widget);
 



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