summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-16 13:55:42 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-02 12:51:55 +0100
commitef58118cad934b5fa5bf5ca1abe2d7f3d6f56836 (patch)
treee4c1dc326b04b3fb271b09fafee745a212722fef
parent6016147ccdf1335dc6d285d50938446c42e1ce95 (diff)
downloadmate-settings-daemon-ef58118cad934b5fa5bf5ca1abe2d7f3d6f56836.tar.bz2
mate-settings-daemon-ef58118cad934b5fa5bf5ca1abe2d7f3d6f56836.tar.xz
GTK3: don't use deprecated gtk_widget_size_request
-rw-r--r--plugins/media-keys/msd-media-keys-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/media-keys/msd-media-keys-manager.c b/plugins/media-keys/msd-media-keys-manager.c
index 9ae91be..24b32ec 100644
--- a/plugins/media-keys/msd-media-keys-manager.c
+++ b/plugins/media-keys/msd-media-keys-manager.c
@@ -411,7 +411,11 @@ dialog_show (MsdMediaKeysManager *manager)
* know its true size, yet, so we need to jump through hoops
*/
gtk_window_get_default_size (GTK_WINDOW (manager->priv->dialog), &orig_w, &orig_h);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_get_preferred_size (manager->priv->dialog, NULL, &win_req);
+#else
gtk_widget_size_request (manager->priv->dialog, &win_req);
+#endif
if (win_req.width > orig_w) {
orig_w = win_req.width;