diff options
author | Alexei Sorokin <[email protected]> | 2017-01-16 15:04:59 +0300 |
---|---|---|
committer | Alexei Sorokin <[email protected]> | 2017-01-16 15:04:59 +0300 |
commit | ffe95c98b04723dacc3a52832c270a63e2364a83 (patch) | |
tree | ebd8f346574376f4cae24c0859bd89bc330be5aa /src/mate-screensaver-preferences.c | |
parent | 78e6e31dbde35a3f3dd4e95f2d8af90de2c17b1f (diff) | |
download | mate-screensaver-ffe95c98b04723dacc3a52832c270a63e2364a83.tar.bz2 mate-screensaver-ffe95c98b04723dacc3a52832c270a63e2364a83.tar.xz |
Gtk2: fix switching to blank in preferences in fullscreen
Diffstat (limited to 'src/mate-screensaver-preferences.c')
-rw-r--r-- | src/mate-screensaver-preferences.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c index e1d167f..babc10b 100644 --- a/src/mate-screensaver-preferences.c +++ b/src/mate-screensaver-preferences.c @@ -1149,10 +1149,20 @@ fullscreen_preview_previous_cb (GtkWidget *fullscreen_preview_window, { GtkWidget *treeview; GtkTreeSelection *selection; +#if !GTK_CHECK_VERSION (3, 0, 0) + GtkWidget *fullscreen_preview_area; +#endif treeview = GTK_WIDGET (gtk_builder_get_object (builder, "savers_treeview")); selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)); tree_selection_previous (selection); +#if !GTK_CHECK_VERSION (3, 0, 0) + + fullscreen_preview_area = + GTK_WIDGET (gtk_builder_get_object (builder, + "fullscreen_preview_area")); + gtk_widget_queue_draw (fullscreen_preview_area); +#endif } static void @@ -1161,10 +1171,20 @@ fullscreen_preview_next_cb (GtkWidget *fullscreen_preview_window, { GtkWidget *treeview; GtkTreeSelection *selection; +#if !GTK_CHECK_VERSION (3, 0, 0) + GtkWidget *fullscreen_preview_area; +#endif treeview = GTK_WIDGET (gtk_builder_get_object (builder, "savers_treeview")); selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview)); tree_selection_next (selection); +#if !GTK_CHECK_VERSION (3, 0, 0) + + fullscreen_preview_area = + GTK_WIDGET (gtk_builder_get_object (builder, + "fullscreen_preview_area")); + gtk_widget_queue_draw (fullscreen_preview_area); +#endif } static void |