about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-08-24 10:05:55 -0400
committerJosh Rickmar <jrick@devio.us>2012-08-24 10:05:55 -0400
commitebac4bd1f6bdd023f1a40e4834c41d5466dd5428 (patch)
treee5aa7c5a7bae2eadc483060381ede327143ffabb
parentc2e4008b79a54b8b202af4239c29551b851c0b12 (diff)
downloadxombrero-ebac4bd1f6bdd023f1a40e4834c41d5466dd5428.tar.gz
Fix the build when using some older glib and gtk versions
-rw-r--r--about.c4
-rw-r--r--xombrero.c2
2 files changed, 6 insertions, 0 deletions
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)