use #ifdef instead of #if to avoid warnings with gtk2

This commit is contained in:
Landry Breuil
2014-12-11 23:29:57 +01:00
parent 4d6fb822be
commit 21bf64ee92
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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);