summaryrefslogtreecommitdiff
path: root/capplets/about-me
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/about-me')
-rw-r--r--capplets/about-me/e-image-chooser.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/capplets/about-me/e-image-chooser.c b/capplets/about-me/e-image-chooser.c
index cf5d1c68..d87bf0b5 100644
--- a/capplets/about-me/e-image-chooser.c
+++ b/capplets/about-me/e-image-chooser.c
@@ -29,6 +29,10 @@
#include "e-image-chooser.h"
+#if !GTK_CHECK_VERSION(3,0,0)
+#define gtk_widget_get_preferred_size(x,y,z) gtk_widget_size_request(x,y)
+#endif
+
struct _EImageChooserPrivate {
GtkWidget *image;
@@ -204,8 +208,8 @@ set_image_from_data (EImageChooser *chooser,
float scale;
int new_height, new_width;
- gtk_widget_size_request (gtk_widget_get_parent (GTK_WIDGET (chooser)),
- &chooser_size);
+ gtk_widget_get_preferred_size (gtk_widget_get_parent (GTK_WIDGET (chooser)),
+ &chooser_size, NULL);
chooser_size.width -= 5;
chooser_size.height -= 5;