[Xfce4-commits] [apps/xfce4-taskmanager] 09/10: use #ifdef instead of #if to avoid warnings with gtk2
noreply at xfce.org
noreply at xfce.org
Thu Dec 11 23:30:49 CET 2014
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch landry/gtk3
in repository apps/xfce4-taskmanager.
commit 21bf64ee9249c72aaa88fd5c32fa9866fba2e337
Author: Landry Breuil <landry at xfce.org>
Date: Thu Dec 11 23:29:57 2014 +0100
use #ifdef instead of #if to avoid warnings with gtk2
---
src/process-monitor.c | 2 +-
src/process-statusbar.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/process-monitor.c b/src/process-monitor.c
index 0dd6568..0ef954b 100644
--- a/src/process-monitor.c
+++ b/src/process-monitor.c
@@ -59,7 +59,7 @@ xtm_process_monitor_class_init (XtmProcessMonitorClass *klass)
xtm_process_monitor_parent_class = g_type_class_peek_parent (klass);
class->get_property = xtm_process_monitor_get_property;
class->set_property = xtm_process_monitor_set_property;
-#if HAVE_GTK3
+#ifdef HAVE_GTK3
widget_class->draw = xtm_process_monitor_expose;
#else
widget_class->expose_event = xtm_process_monitor_expose;
diff --git a/src/process-statusbar.c b/src/process-statusbar.c
index 376e408..01a46e1 100644
--- a/src/process-statusbar.c
+++ b/src/process-statusbar.c
@@ -100,7 +100,7 @@ xtm_process_statusbar_init (XtmProcessStatusbar *statusbar)
}
#endif
-#if HAVE_GTK3
+#ifdef HAVE_GTK3
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 16);
#else
hbox = gtk_hbox_new (FALSE, 16);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list