[gnome-terminal] profile: editor: Fix gtk version check
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] profile: editor: Fix gtk version check
- Date: Sun, 31 Jan 2016 10:37:02 +0000 (UTC)
commit c5a883b61e55b2a626dcabd3e1b46367629e8892
Author: Christian Persch <chpe gnome org>
Date: Sun Jan 31 11:36:14 2016 +0100
profile: editor: Fix gtk version check
Check for gtk 3.19.8, not .6.
src/profile-editor.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/profile-editor.c b/src/profile-editor.c
index 4739c1c..4da5748 100644
--- a/src/profile-editor.c
+++ b/src/profile-editor.c
@@ -755,7 +755,7 @@ bool_to_scrollbar_policy (const GValue *value,
return g_variant_new_string (g_value_get_boolean (value) ? "always" : "never");
}
-#if !GTK_CHECK_VERSION (3, 19, 6)
+#if !GTK_CHECK_VERSION (3, 19, 8)
/* ATTENTION: HACK HACK HACK!
* GtkColorButton usability is broken. It always pops up the
@@ -794,7 +794,7 @@ fixup_color_chooser_button (void)
}
}
-#endif /* GTK+ < 3.19.6 HACK */
+#endif /* GTK+ < 3.19.8 HACK */
/**
* terminal_profile_edit:
@@ -829,7 +829,7 @@ terminal_profile_edit (GSettings *profile,
return;
}
-#if !GTK_CHECK_VERSION (3, 19, 6)
+#if !GTK_CHECK_VERSION (3, 19, 8)
fixup_color_chooser_button ();
#endif
@@ -884,7 +884,7 @@ terminal_profile_edit (GSettings *profile,
g_snprintf (name, sizeof (name), "palette-colorpicker-%u", i + 1);
w = (GtkWidget *) gtk_builder_get_object (builder, name);
-#if GTK_CHECK_VERSION (3, 19, 6)
+#if GTK_CHECK_VERSION (3, 19, 8)
g_object_set (w, "show-editor", TRUE, NULL);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]