summaryrefslogtreecommitdiff
path: root/src/themes/standard/theme.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/themes/standard/theme.c')
-rw-r--r--src/themes/standard/theme.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c
index f7cee91..022a6cc 100644
--- a/src/themes/standard/theme.c
+++ b/src/themes/standard/theme.c
@@ -23,10 +23,6 @@
#include <gtk/gtk.h>
-#if GTK_CHECK_VERSION(3, 0, 0)
-#define GTK_WIDGET_VISIBLE(w) gtk_widget_get_visible(w)
-#endif
-
typedef void (*ActionInvokedCb) (GtkWindow* nw, const char* key);
typedef void (*UrlClickedCb) (GtkWindow* nw, const char* url);
@@ -626,7 +622,7 @@ static void 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);
}
@@ -1046,7 +1042,7 @@ void add_notification_action(GtkWindow* nw, const char* text, const char* key, A
g_assert(windata != NULL);
- if (!GTK_WIDGET_VISIBLE(windata->actions_box))
+ if (!gtk_widget_get_visible(windata->actions_box))
{
GtkWidget* alignment;