summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gnome-extra/libgnomedb/files/libgnomedb-1.0.4-selector.patch')
-rw-r--r--gnome-extra/libgnomedb/files/libgnomedb-1.0.4-selector.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnome-extra/libgnomedb/files/libgnomedb-1.0.4-selector.patch b/gnome-extra/libgnomedb/files/libgnomedb-1.0.4-selector.patch
new file mode 100644
index 000000000000..a40df7bbed0c
--- /dev/null
+++ b/gnome-extra/libgnomedb/files/libgnomedb-1.0.4-selector.patch
@@ -0,0 +1,29 @@
+--- libgnomedb/gnome-db-data-source-selector.c.orig Sun Apr 18 21:41:59 2004
++++ libgnomedb/gnome-db-data-source-selector.c Sun Apr 18 21:43:20 2004
+@@ -61,8 +61,25 @@
+ dsn_info->name);
+ gnome_db_config_free_data_source_info (dsn_info);
+ }
+- else
++ else {
++ GList *dsn_list;
++ GList *l;
++
++ /* load data sources */
++ dsn_list = gnome_db_config_get_data_source_list ();
++ for (l = dsn_list; l != NULL; l = l->next) {
++ GdaDataSourceInfo *dsn_info = (GdaDataSourceInfo *) l->data;
++
++ if (!dsn_info)
++ continue;
++
++ /* add the data source to the option menu */
++ gnome_db_option_menu_add_item (GTK_OPTION_MENU (selector), dsn_info->name);
++ }
++
++ gnome_db_config_free_data_source_list (dsn_list);
+ gtk_option_menu_set_history (GTK_OPTION_MENU (selector), 0);
++ }
+ }
+
+ /*