diff options
author | infirit <[email protected]> | 2014-07-03 13:35:27 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-07-03 13:41:44 +0200 |
commit | 0db54b288c7eca478a13c33ccd3b202d6e3688f9 (patch) | |
tree | f749882497770e9992cd898aa43f460bcf0c7ba2 /src/themes/coco | |
parent | bc08fc921ac11df7373aab45117344972109c071 (diff) | |
download | mate-notification-daemon-0db54b288c7eca478a13c33ccd3b202d6e3688f9.tar.bz2 mate-notification-daemon-0db54b288c7eca478a13c33ccd3b202d6e3688f9.tar.xz |
Use gtk_widget_get_visible for both Gtk+ versions
Also fix a bug in add_notification_action in coco-theme
Diffstat (limited to 'src/themes/coco')
-rw-r--r-- | src/themes/coco/coco-theme.c | 6 |
1 files changed, 1 insertions, 5 deletions
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; |