summaryrefslogtreecommitdiff
path: root/src/mate-screensaver-preferences.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-09 12:08:18 +0200
committerinfirit <[email protected]>2015-07-09 12:15:32 +0200
commit72dd61aa3a3a98bf38c2cc3aa7e36f99b620be24 (patch)
tree4e76ed8e327a98bb4a89876a5747b1ea375fda07 /src/mate-screensaver-preferences.c
parenta3c426e1e81dc56f4fdd56f8c736125798fec26b (diff)
downloadmate-screensaver-72dd61aa3a3a98bf38c2cc3aa7e36f99b620be24.tar.bz2
mate-screensaver-72dd61aa3a3a98bf38c2cc3aa7e36f99b620be24.tar.xz
Use accessor functions instead of direct access
Make Gtk2 build with GSEAL_ENABLE And cut down on ifdef hell.
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;