[gnome-builder] preferences: only use a single column for languages
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] preferences: only use a single column for languages
- Date: Sun, 18 Sep 2016 03:25:00 +0000 (UTC)
commit cfc28663797403892bbad5de48290b611bfbeba1
Author: Christian Hergert <chergert redhat com>
Date: Sat Sep 17 15:44:00 2016 -0700
preferences: only use a single column for languages
When doing the language list, we only want to see a single column ever.
libide/preferences/ide-preferences-builtin.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libide/preferences/ide-preferences-builtin.c b/libide/preferences/ide-preferences-builtin.c
index fdd06e2..4ed6758 100644
--- a/libide/preferences/ide-preferences-builtin.c
+++ b/libide/preferences/ide-preferences-builtin.c
@@ -18,6 +18,7 @@
#define G_LOG_DOMAIN "ide-preferences-builtin"
+#include <egg-column-layout.h>
#include <glib/gi18n.h>
#include <gtksourceview/gtksource.h>
#include <libpeas/peas.h>
@@ -243,6 +244,7 @@ ide_preferences_builtin_register_languages (IdePreferences *preferences)
g_autoptr(GHashTable) sections = NULL;
GtkSearchEntry *search;
GtkWidget *group = NULL;
+ GtkWidget *flow = NULL;
sections = g_hash_table_new (g_str_hash, g_str_equal);
@@ -302,6 +304,12 @@ ide_preferences_builtin_register_languages (IdePreferences *preferences)
group,
0);
+ flow = gtk_widget_get_ancestor (group, EGG_TYPE_COLUMN_LAYOUT);
+
+ g_assert (flow != NULL);
+
+ egg_column_layout_set_max_columns (EGG_COLUMN_LAYOUT (flow), 1);
+
ide_preferences_add_page (preferences, "languages.id", NULL, 0);
ide_preferences_add_list_group (preferences, "languages.id", "basic", _("General"), GTK_SELECTION_NONE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]