[libgda/LIBGDA_4.2] GdaBrowser: display LDAP perspective by default for LDAP connections
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.2] GdaBrowser: display LDAP perspective by default for LDAP connections
- Date: Sun, 6 Nov 2011 17:51:54 +0000 (UTC)
commit 41de867406d88fc60ff9a0f995233c4c6e17cb76
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Nov 2 18:25:38 2011 +0100
GdaBrowser: display LDAP perspective by default for LDAP connections
tools/browser/browser-window.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tools/browser/browser-window.c b/tools/browser/browser-window.c
index a5488ac..8d951b7 100644
--- a/tools/browser/browser-window.c
+++ b/tools/browser/browser-window.c
@@ -517,6 +517,8 @@ browser_window_new (BrowserConnection *bcnc, BrowserPerspectiveFactory *factory)
/* create a PerspectiveData */
PerspectiveData *pers;
+ if (! factory && browser_connection_is_ldap (bcnc))
+ factory = browser_core_get_factory (_("LDAP browser"));
pers = perspective_data_new (bwin, factory);
bwin->priv->perspectives = g_slist_prepend (bwin->priv->perspectives, pers);
GtkActionGroup *actions;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]