summaryrefslogtreecommitdiff
path: root/eel/eel-wrap-table.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-15 12:24:20 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-15 12:24:20 +0100
commit7b5604b7e1af03445e7209b8a067ef359c2b4846 (patch)
treef4e828c67e0f7d09e9a392c80f5219279622d0fd /eel/eel-wrap-table.c
parent4c7f59163c415140d76330a1b3c57b1efe35ca14 (diff)
downloadcaja-7b5604b7e1af03445e7209b8a067ef359c2b4846.tar.bz2
caja-7b5604b7e1af03445e7209b8a067ef359c2b4846.tar.xz
GTK3: don't use deprecated gtk_widget_size_request
gtk_widget_size_request --> gtk_widget_get_preferred_size
Diffstat (limited to 'eel/eel-wrap-table.c')
-rw-r--r--eel/eel-wrap-table.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/eel/eel-wrap-table.c b/eel/eel-wrap-table.c
index d5be8ae5..99592a90 100644
--- a/eel/eel-wrap-table.c
+++ b/eel/eel-wrap-table.c
@@ -30,6 +30,10 @@
#include "eel-gtk-extensions.h"
#include <gtk/gtk.h>
+#if !GTK_CHECK_VERSION(3,0,0)
+#define gtk_widget_get_preferred_size(x,y,z) gtk_widget_size_request(x,y)
+#endif
+
/* Arguments */
enum
{
@@ -587,7 +591,7 @@ wrap_table_layout (EelWrapTable *wrap_table)
{
GtkRequisition item_requisition;
- gtk_widget_size_request (item, &item_requisition);
+ gtk_widget_get_preferred_size (item, &item_requisition, NULL);
item_allocation.x = pos.x;
item_allocation.y = pos.y;
@@ -675,7 +679,7 @@ wrap_table_get_max_child_dimensions (const EelWrapTable *wrap_table)
GtkRequisition child_requisition;
EelDimensions child_dimensions;
- gtk_widget_size_request (child, &child_requisition);
+ gtk_widget_get_preferred_size (child, &child_requisition, NULL);
child_dimensions.width = (int) child_requisition.width;
child_dimensions.height = (int) child_requisition.height;