summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-icon-container.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 /libcaja-private/caja-icon-container.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 'libcaja-private/caja-icon-container.c')
-rw-r--r--libcaja-private/caja-icon-container.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c
index 2cec67a5..a4f2fc1b 100644
--- a/libcaja-private/caja-icon-container.c
+++ b/libcaja-private/caja-icon-container.c
@@ -62,6 +62,10 @@
#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y)
#endif
+#if !GTK_CHECK_VERSION(3,0,0)
+#define gtk_widget_get_preferred_size(x,y,z) gtk_widget_size_request(x,y)
+#endif
+
#define TAB_NAVIGATION_DISABLED
/* Interval for updating the rubberband selection, in milliseconds. */
@@ -5352,11 +5356,7 @@ caja_icon_container_search_position_func (CajaIconContainer *container,
cont_width = gdk_window_get_width (cont_window);
cont_height = gdk_window_get_height (cont_window);
-#if GTK_CHECK_VERSION(3, 0, 0)
gtk_widget_get_preferred_size (search_dialog, &requisition, NULL);
-#else
- gtk_widget_size_request (search_dialog, &requisition);
-#endif
if (cont_x + cont_width - requisition.width > gdk_screen_get_width (screen))
{