diff options
author | raveit65 <[email protected]> | 2016-06-17 19:39:17 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-06-17 19:39:17 +0200 |
commit | 9fa11cdec2a5d1060cc1a8c5e2b7ce188de323f2 (patch) | |
tree | 86cfbbb41f35c517c5b454cad2aba2c661e06f10 /capplets/keybindings | |
parent | 484941aa39b93056f7f491bb7d63c7796011959a (diff) | |
download | mate-control-center-9fa11cdec2a5d1060cc1a8c5e2b7ce188de323f2.tar.bz2 mate-control-center-9fa11cdec2a5d1060cc1a8c5e2b7ce188de323f2.tar.xz |
GTK+-3 keybinding-properties: don't use deprecated gtk_widget_size_request
Diffstat (limited to 'capplets/keybindings')
-rw-r--r-- | capplets/keybindings/mate-keybinding-properties.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/capplets/keybindings/mate-keybinding-properties.c b/capplets/keybindings/mate-keybinding-properties.c index ee3e45aa..f06ab09b 100644 --- a/capplets/keybindings/mate-keybinding-properties.c +++ b/capplets/keybindings/mate-keybinding-properties.c @@ -19,6 +19,10 @@ #include "activate-settings-daemon.h" #include "dconf-util.h" +#if !GTK_CHECK_VERSION(3,0,0) +#define gtk_widget_get_preferred_size(x,y,z) gtk_widget_size_request(x,y) +#endif + #define GSETTINGS_KEYBINDINGS_DIR "/org/mate/desktop/keybindings/" #define CUSTOM_KEYBINDING_SCHEMA "org.mate.control-center.keybinding" @@ -537,7 +541,7 @@ ensure_scrollbar (GtkBuilder *builder, int i) GtkWidget *treeview = _gtk_builder_get_widget (builder, "shortcut_treeview"); gtk_widget_ensure_style (treeview); - gtk_widget_size_request (treeview, &rectangle); + gtk_widget_get_preferred_size (treeview, &rectangle, NULL); gtk_widget_set_size_request (treeview, -1, rectangle.height); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (actions_swindow), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); |