[libgda] Misc corrections



commit fe12405e1661cbe3a5dfac6020d171c7b95c88fe
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sun Nov 15 16:27:17 2009 +0100

    Misc corrections

 libgda-ui/Makefile.am                      |    6 ++++--
 providers/postgres/gda-postgres-provider.c |    3 +++
 tools/browser/browser-connections-list.c   |    5 ++++-
 3 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/libgda-ui/Makefile.am b/libgda-ui/Makefile.am
index a4ce1d2..31b8cba 100644
--- a/libgda-ui/Makefile.am
+++ b/libgda-ui/Makefile.am
@@ -11,7 +11,8 @@ AM_CPPFLAGS = \
 	-DPLUGINSDIR=\""$(top_builddir)/libgda-ui/plugins/.libs"\" \
 	-DGDA_ABI_VERSION=\""$(GDA_ABI_VERSION)"\" \
 	$(LIBGDA_CFLAGS) \
-	$(GTK_CFLAGS)
+	$(GTK_CFLAGS) \
+	$(GIO_CFLAGS)
 
 ui_headers = \
 	gdaui-basic-form.h \
@@ -102,7 +103,8 @@ libgda_ui_4_0_la_LIBADD = \
 	data-entries/libgda-ui-data-entries.la \
 	../libgda/libgda-4.0.la \
 	$(LIBGDA_LIBS) \
-	$(GTK_LIBS)
+	$(GTK_LIBS) \
+	$(GIO_LIBS)
 
 if PLATFORM_WIN32
 libgda_ui_4_0_la_LDFLAGS += -export-symbols $(srcdir)/libgda-ui.def
diff --git a/providers/postgres/gda-postgres-provider.c b/providers/postgres/gda-postgres-provider.c
index d1584da..a58737b 100644
--- a/providers/postgres/gda-postgres-provider.c
+++ b/providers/postgres/gda-postgres-provider.c
@@ -640,6 +640,9 @@ gda_postgres_provider_open_connection (GdaServerProvider *provider, GdaConnectio
 		pq_pwd = gda_quark_list_find (params, "PASSWORD");
 
         pq_requiressl = gda_quark_list_find (params, "USE_SSL");
+	if (pq_requiressl && (*pq_requiressl != 'T') && (*pq_requiressl != 't'))
+		pq_requiressl = NULL;
+
 
 	/* TODO: Escape single quotes and backslashes in the user name and password: */
         conn_string = g_strconcat ("",
diff --git a/tools/browser/browser-connections-list.c b/tools/browser/browser-connections-list.c
index 00d45eb..477fe1b 100644
--- a/tools/browser/browser-connections-list.c
+++ b/tools/browser/browser-connections-list.c
@@ -473,8 +473,11 @@ browser_connections_list_show (BrowserConnection *current)
 		GtkTreeModel *model;
 		GtkTreeIter iter;
 		model = gtk_tree_view_get_model (GTK_TREE_VIEW (_clist->priv->treeview));
-		if (gtk_tree_model_get_iter_first (GTK_TREE_MODEL (model), &iter))
+		if (gtk_tree_model_get_iter_first (GTK_TREE_MODEL (model), &iter)) {
+			GtkTreeSelection *select;
+                        select = gtk_tree_view_get_selection (GTK_TREE_VIEW (_clist->priv->treeview));	
 			gtk_tree_selection_select_iter (select, &iter);
+		}
 	}
 }
 



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