summaryrefslogtreecommitdiff
path: root/src/mate-screensaver-preferences.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mate-screensaver-preferences.c')
-rw-r--r--src/mate-screensaver-preferences.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c
index 08ea293..b719f38 100644
--- a/src/mate-screensaver-preferences.c
+++ b/src/mate-screensaver-preferences.c
@@ -307,7 +307,7 @@ preview_clear (GtkWidget *widget)
#if GTK_CHECK_VERSION (3, 0, 0)
gtk_widget_queue_draw (widget);
#else
- gdk_window_clear (widget->window);
+ gdk_window_clear (gtk_widget_get_window (widget));
#endif
}
@@ -918,11 +918,7 @@ drag_data_received_cb (GtkWidget *widget,
if (!(info == TARGET_URI_LIST || info == TARGET_NS_URL))
return;
-#if GTK_CHECK_VERSION (3, 0, 0)
files = uri_list_parse ((char *) gtk_selection_data_get_data (selection_data));
-#else
- files = uri_list_parse ((char *) selection_data->data);
-#endif
if (files != NULL)
{
GtkWidget *prefs_dialog;