[gnome-applets] drivemount: port to gtk_widget_get_preferred_size



commit 5e47e39ff8cb16b5cc8bdfb7917fdb228c9b448c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Mar 26 00:43:22 2015 +0200

    drivemount: port to gtk_widget_get_preferred_size

 drivemount/drive-button.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/drivemount/drive-button.c b/drivemount/drive-button.c
index a7c0454..f8bfccf 100644
--- a/drivemount/drive-button.c
+++ b/drivemount/drive-button.c
@@ -166,7 +166,7 @@ position_menu (GtkMenu *menu, gint *x, gint *y,
 
     direction = gtk_widget_get_direction (widget);
 
-    gtk_widget_get_requisition (GTK_WIDGET (menu), &requisition);
+    gtk_widget_get_preferred_size (GTK_WIDGET (menu), &requisition, NULL);
     twidth = requisition.width;
     theight = requisition.height;
 


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