use #ifdef instead of #if to avoid warnings with gtk2
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user