diff options
author | infirit <[email protected]> | 2015-07-09 12:08:18 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-07-09 12:15:32 +0200 |
commit | 72dd61aa3a3a98bf38c2cc3aa7e36f99b620be24 (patch) | |
tree | 4e76ed8e327a98bb4a89876a5747b1ea375fda07 /savers/gs-theme-window.c | |
parent | a3c426e1e81dc56f4fdd56f8c736125798fec26b (diff) | |
download | mate-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 'savers/gs-theme-window.c')
-rw-r--r-- | savers/gs-theme-window.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/savers/gs-theme-window.c b/savers/gs-theme-window.c index aa35476..089a7f2 100644 --- a/savers/gs-theme-window.c +++ b/savers/gs-theme-window.c @@ -178,27 +178,15 @@ gs_theme_window_real_realize (GtkWidget *widget) return; } -#if GTK_CHECK_VERSION (3, 0, 0) gtk_style_set_background (gtk_widget_get_style (widget), -#else - gtk_style_set_background (widget->style, -#endif window, GTK_STATE_NORMAL); gdk_window_set_decorations (window, (GdkWMDecoration) 0); gdk_window_set_events (window, gdk_window_get_events (window) | event_mask); -#if GTK_CHECK_VERSION (3, 0, 0) gtk_widget_set_window (widget, window); -#else - widget->window = window; -#endif gdk_window_set_user_data (window, widget); -#if GTK_CHECK_VERSION (3, 0, 0) gtk_widget_set_realized (widget, TRUE); -#else - GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED); -#endif #if GTK_CHECK_VERSION (3, 0, 0) gdk_window_get_geometry (window, &x, &y, &width, &height); |