From 0db54b288c7eca478a13c33ccd3b202d6e3688f9 Mon Sep 17 00:00:00 2001 From: infirit Date: Thu, 3 Jul 2014 13:35:27 +0200 Subject: Use gtk_widget_get_visible for both Gtk+ versions Also fix a bug in add_notification_action in coco-theme --- src/themes/coco/coco-theme.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/themes/coco') diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index 2825500..d4747f2 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -585,11 +585,7 @@ add_notification_action(GtkWindow *nw, const char *text, const char *key, g_assert(windata != NULL); -#if GTK_CHECK_VERSION(3, 0, 0) - if (gtk_widget_get_visible(windata->actions_box)) -#else - if (!GTK_WIDGET_VISIBLE(windata->actions_box)) -#endif + if (!gtk_widget_get_visible(windata->actions_box)) { GtkWidget *alignment; -- cgit v1.2.1