diff options
author | raveit65 <[email protected]> | 2016-06-17 19:52:16 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-06-17 19:52:16 +0200 |
commit | 17f83e03668aad4f8af92f0aa13dae7c6f2b4680 (patch) | |
tree | 6c13724161c2a6cf7df0552f1e30af24f2374cf1 /capplets/about-me/e-image-chooser.c | |
parent | c924624402d10766ed50b3d632ffa76e4fd3bbbe (diff) | |
download | mate-control-center-17f83e03668aad4f8af92f0aa13dae7c6f2b4680.tar.bz2 mate-control-center-17f83e03668aad4f8af92f0aa13dae7c6f2b4680.tar.xz |
GTK+-3 e-image-chooser: don't use deprecated gtk_widget_size_request
Diffstat (limited to 'capplets/about-me/e-image-chooser.c')
-rw-r--r-- | capplets/about-me/e-image-chooser.c | 8 |
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; |