Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 48611 | Differences between
and this patch

Collapse All | Expand All

(-)libgnomedb/gnome-db-data-source-selector.c.orig (-1 / +18 lines)
Lines 61-68 Link Here
61
						    dsn_info->name);
61
						    dsn_info->name);
62
		gnome_db_config_free_data_source_info (dsn_info);
62
		gnome_db_config_free_data_source_info (dsn_info);
63
	}
63
	}
64
	else
64
	else {
65
		GList *dsn_list;
66
		GList *l;
67
68
		/* load data sources */
69
		dsn_list = gnome_db_config_get_data_source_list ();
70
		for (l = dsn_list; l != NULL; l = l->next) {
71
			GdaDataSourceInfo *dsn_info = (GdaDataSourceInfo *) l->data;
72
73
			if (!dsn_info)
74
				continue;
75
76
			/* add the data source to the option menu */
77
			gnome_db_option_menu_add_item (GTK_OPTION_MENU (selector), dsn_info->name);
78
		}
79
80
		gnome_db_config_free_data_source_list (dsn_list);
65
		gtk_option_menu_set_history (GTK_OPTION_MENU (selector), 0);
81
		gtk_option_menu_set_history (GTK_OPTION_MENU (selector), 0);
82
	}
66
}
83
}
67
84
68
/*
85
/*

Return to bug 48611