From 59896497977040f03aaa0b2c293c265ed2e0c4e7 Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Fri, 19 Aug 2011 13:32:25 -0400 Subject: * Add a WITH_GTK (2, 3) definition to handle some of the minor differences between gtk2 and 3 * Replace gtk_hbox_new with gtk_box_new in the gtk3 version * GtkLabel has a new (and much nicer) wrapping mechanism - use gtk_label_set_max_width_chars in gtk3 version --- src/notifications-service.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/notifications-service.c') diff --git a/src/notifications-service.c b/src/notifications-service.c index a5a4ef2..d3c7da2 100644 --- a/src/notifications-service.c +++ b/src/notifications-service.c @@ -26,7 +26,12 @@ with this program. If not, see . #include #include +#if WITH_GTK == 3 +#include +#else #include +#endif + #include #include #include -- cgit v1.2.3