summaryrefslogtreecommitdiff
path: root/src/themes/nodoka
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-03 13:35:27 +0200
committerinfirit <[email protected]>2014-07-03 13:41:44 +0200
commit0db54b288c7eca478a13c33ccd3b202d6e3688f9 (patch)
treef749882497770e9992cd898aa43f460bcf0c7ba2 /src/themes/nodoka
parentbc08fc921ac11df7373aab45117344972109c071 (diff)
downloadmate-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/nodoka')
-rw-r--r--src/themes/nodoka/nodoka-theme.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c
index 2a0e56a..64f8811 100644
--- a/src/themes/nodoka/nodoka-theme.c
+++ b/src/themes/nodoka/nodoka-theme.c
@@ -27,10 +27,6 @@
#include <gtk/gtk.h>
-#if GTK_CHECK_VERSION(3, 0, 0)
- #define GTK_WIDGET_VISIBLE(w) gtk_widget_get_visible(w)
-#endif
-
/* Define basic nodoka types */
typedef void (*ActionInvokedCb)(GtkWindow *nw, const char *key);
typedef void (*UrlClickedCb)(GtkWindow *nw, const char *url);
@@ -315,9 +311,9 @@ update_content_hbox_visibility(WindowData *windata)
* This is all a hack, but until we have a libview-style ContentBox,
* it'll just have to do.
*/
- if (GTK_WIDGET_VISIBLE(windata->icon) ||
- GTK_WIDGET_VISIBLE(windata->body_label) ||
- GTK_WIDGET_VISIBLE(windata->actions_box))
+ if (gtk_widget_get_visible(windata->icon) ||
+ gtk_widget_get_visible(windata->body_label) ||
+ gtk_widget_get_visible(windata->actions_box))
{
gtk_widget_show(windata->content_hbox);
}
@@ -1040,7 +1036,7 @@ add_notification_action(GtkWindow *nw, const char *text, const char *key,
g_assert(windata != NULL);
- if (!GTK_WIDGET_VISIBLE(windata->actions_box))
+ if (!gtk_widget_get_visible(windata->actions_box))
{
GtkWidget *alignment;