From ac3ebe71041af17f99a5cce3433c4533622396ef Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 22 Jul 2015 15:32:18 +0200 Subject: GTK3: replace deprecated gtk_widget_size_request --- src/themes/slider/theme.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/themes/slider') diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c index 16012a4..eb54509 100644 --- a/src/themes/slider/theme.c +++ b/src/themes/slider/theme.c @@ -807,7 +807,11 @@ void set_notification_text(GtkWindow* nw, const char* summary, const char* body) update_content_hbox_visibility(windata); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_get_preferred_size (windata->close_button, NULL, &req); +#else gtk_widget_size_request(windata->close_button, &req); +#endif /* -1: main_vbox border width -10: vbox border width -6: spacing for hbox */ -- cgit v1.2.1