From ebac4bd1f6bdd023f1a40e4834c41d5466dd5428 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Fri, 24 Aug 2012 10:05:55 -0400 Subject: Fix the build when using some older glib and gtk versions --- about.c | 4 ++++ xombrero.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/about.c b/about.c index f41d52d..bd49433 100644 --- a/about.c +++ b/about.c @@ -1950,7 +1950,11 @@ xt_g_object_serialize(GValue *value, const gchar *tname, char *str, int recurse) break; case G_TYPE_CHAR: valstr = g_strdup_printf("%c", +#if GLIB_CHECK_VERSION(2,30,1) g_value_get_schar(value)); +#else + g_value_get_char(value)); +#endif break; case G_TYPE_UCHAR: valstr = g_strdup_printf("%c", diff --git a/xombrero.c b/xombrero.c index a06ce8a..1ca2ccd 100644 --- a/xombrero.c +++ b/xombrero.c @@ -5837,6 +5837,7 @@ done: * without relying on calling internal GTK functions (which we * couldn't link to in Linux). */ +#if GTK_CHECK_VERSION(3, 0, 0) void fake_focus_in(GtkWidget *w) { @@ -5849,6 +5850,7 @@ fake_focus_in(GtkWidget *w) } gtk_widget_send_focus_change(main_window, fevent); } +#endif gboolean handle_keypress(struct tab *t, GdkEventKey *e, int entry) -- cgit 1.4.1-2-gfad0