[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis-gtk] 04/07: fix country list
From: |
gnunet |
Subject: |
[taler-anastasis-gtk] 04/07: fix country list |
Date: |
Tue, 15 Sep 2020 19:27:14 +0200 |
This is an automated email from the git hooks/post-receive script.
dennis-neufeld pushed a commit to branch master
in repository anastasis-gtk.
commit 82f470a9c48a40f42fc1d5b7da2facd72e238670
Author: Dennis Neufeld <dennis.neufeld@students.bfh.ch>
AuthorDate: Tue Sep 15 16:10:59 2020 +0200
fix country list
---
contrib/anastasis_gtk_main_window.glade | 1 +
src/anastasis/anastasis-gtk_helper.c | 7 +++----
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/contrib/anastasis_gtk_main_window.glade
b/contrib/anastasis_gtk_main_window.glade
index 37e6033..e5548c8 100644
--- a/contrib/anastasis_gtk_main_window.glade
+++ b/contrib/anastasis_gtk_main_window.glade
@@ -248,6 +248,7 @@
<object class="GtkTreeView"
id="anastasis_gtk_country_treeview">
<property
name="visible">True</property>
<property
name="can_focus">True</property>
+ <property
name="enable_search">False</property>
<property
name="search_column">0</property>
<property
name="activate_on_single_click">True</property>
<child internal-child="selection">
diff --git a/src/anastasis/anastasis-gtk_helper.c
b/src/anastasis/anastasis-gtk_helper.c
index ee2322e..c04d54e 100644
--- a/src/anastasis/anastasis-gtk_helper.c
+++ b/src/anastasis/anastasis-gtk_helper.c
@@ -171,7 +171,7 @@ void
init_country_list (json_t *continent_selected_state,
const char *continent)
{
-
+ GtkTreeView *tree_view;
GtkListStore *country_liststore;
GtkTreeIter iter;
char *country_list;
@@ -184,6 +184,8 @@ init_country_list (json_t *continent_selected_state,
continent);
country_liststore = GTK_LIST_STORE (
GCG_get_main_window_object (country_list));
+ tree_view = GTK_TREE_VIEW (GCG_get_main_window_object
("anastasis_gtk_country_treeview"));
+ gtk_tree_view_set_model (tree_view, GTK_TREE_MODEL (country_liststore));
gtk_list_store_clear (country_liststore);
json_array_foreach (countries, index, country)
{
@@ -192,11 +194,8 @@ init_country_list (json_t *continent_selected_state,
0, json_string_value (json_object_get (country,
"name")), //FIXME implement i18n
1, json_string_value (json_object_get (country,
"code")),
-1);
- gtk_widget_show (GTK_WIDGET (GCG_get_main_window_object (
- "anastasis_gtk_country_treeview")));
}
GNUNET_free (country_list);
-
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-anastasis-gtk] branch master updated (9ca91ba -> 560ddb0), gnunet, 2020/09/15
- [taler-anastasis-gtk] 04/07: fix country list,
gnunet <=
- [taler-anastasis-gtk] 01/07: show continent list, gnunet, 2020/09/15
- [taler-anastasis-gtk] 03/07: fix continent selection, gnunet, 2020/09/15
- [taler-anastasis-gtk] 02/07: worked on select country, gnunet, 2020/09/15
- [taler-anastasis-gtk] 07/07: start with identity attributes, gnunet, 2020/09/15
- [taler-anastasis-gtk] 06/07: fix country selection, gnunet, 2020/09/15
- [taler-anastasis-gtk] 05/07: add prev-/forward-button functionality, gnunet, 2020/09/15