summaryrefslogtreecommitdiff
blob: a40df7bbed0cd42bced3c22040f8efbd4d495168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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);
+	}
 }
 
 /*