[libgda] Misc. corrections



commit 58b4af2832964d52bd90fbf2cfc002b1732f2d1a
Author: Vivien Malerba <malerba gnome-db org>
Date:   Tue Jan 18 20:49:23 2011 +0100

    Misc. corrections

 libgda-ui/gdaui-basic-form.c                |    1 +
 tools/browser/data-manager/ui-spec-editor.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgda-ui/gdaui-basic-form.c b/libgda-ui/gdaui-basic-form.c
index 3a30d42..3af83a1 100644
--- a/libgda-ui/gdaui-basic-form.c
+++ b/libgda-ui/gdaui-basic-form.c
@@ -2017,6 +2017,7 @@ gdaui_basic_form_new_in_dialog (GdaSet *data_set, GtkWindow *parent,
 					   GTK_STOCK_OK,
 					   GTK_RESPONSE_ACCEPT,
 					   NULL);
+	gtk_dialog_set_default_response (GTK_DIALOG (dlg), GTK_RESPONSE_ACCEPT);
 	if (header && *header) {
 		GtkWidget *label;
 		gchar *str;
diff --git a/tools/browser/data-manager/ui-spec-editor.c b/tools/browser/data-manager/ui-spec-editor.c
index 559a761..65c2cf7 100644
--- a/tools/browser/data-manager/ui-spec-editor.c
+++ b/tools/browser/data-manager/ui-spec-editor.c
@@ -507,7 +507,7 @@ ui_spec_editor_get_selected_source (UiSpecEditor *sped)
 	GtkTreeSelection *select;
 	GtkTreeIter iter;
 
-	select = gtk_tree_view_get_selection (sped->priv->sources_tree);
+	select = gtk_tree_view_get_selection (GTK_TREE_VIEW (sped->priv->sources_tree));
 	if (gtk_tree_selection_get_selected (select, &model, &iter)) {
 		DataSource *source;
 		gtk_tree_model_get (model, &iter, COLUMN_DATA_SOURCE, &source, -1);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]