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/gste-popsquares.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/gste-popsquares.c')
-rw-r--r-- | savers/gste-popsquares.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/savers/gste-popsquares.c b/savers/gste-popsquares.c index 200c8ad..db7c36f 100644 --- a/savers/gste-popsquares.c +++ b/savers/gste-popsquares.c @@ -323,19 +323,11 @@ set_colors (GdkWindow *window, widget = gtk_invisible_new (); -#if GTK_CHECK_VERSION (3, 0, 0) color = gtk_widget_get_style (widget)->dark [GTK_STATE_SELECTED]; -#else - color = widget->style->dark [GTK_STATE_SELECTED]; -#endif fg->red = color.red; fg->green = color.green; fg->blue = color.blue; -#if GTK_CHECK_VERSION (3, 0, 0) color = gtk_widget_get_style (widget)->bg [GTK_STATE_SELECTED]; -#else - color = widget->style->bg [GTK_STATE_SELECTED]; -#endif bg->red = color.red; bg->green = color.green; bg->blue = color.blue; |