[gnome-builder] GbPreferencesPageLanguage: add keywords to listbox rows
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] GbPreferencesPageLanguage: add keywords to listbox rows
- Date: Fri, 12 Dec 2014 12:05:37 +0000 (UTC)
commit bbba2b6a7d3b040add8b5a6d93ff1fa1e1b9def5
Author: Christian Hergert <christian hergert me>
Date: Fri Dec 12 04:04:33 2014 -0800
GbPreferencesPageLanguage: add keywords to listbox rows
src/preferences/gb-preferences-page-language.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/preferences/gb-preferences-page-language.c b/src/preferences/gb-preferences-page-language.c
index 3889cc8..8803bfb 100644
--- a/src/preferences/gb-preferences-page-language.c
+++ b/src/preferences/gb-preferences-page-language.c
@@ -203,6 +203,7 @@ gb_preferences_page_language_constructed (GObject *object)
{
GtkSourceLanguage *lang;
GtkWidget *widget;
+ gchar *keywords;
if (g_str_equal (lang_ids [i], "def"))
continue;
@@ -210,6 +211,14 @@ gb_preferences_page_language_constructed (GObject *object)
lang = gtk_source_language_manager_get_language (manager, lang_ids [i]);
widget = make_language_row (lang);
+ keywords = g_strdup_printf ("%s %s %s",
+ gtk_source_language_get_id (lang),
+ gtk_source_language_get_name (lang),
+ gtk_source_language_get_section (lang));
+ gb_preferences_page_set_keywords_for_widget (GB_PREFERENCES_PAGE (object),
+ keywords, widget, NULL);
+ g_free (keywords);
+
gtk_container_add (GTK_CONTAINER (page->priv->language_list_box), widget);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]