[libgda] GdaBrowser: display LDAP perspective by default for LDAP connections
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] GdaBrowser: display LDAP perspective by default for LDAP connections
- Date: Wed, 2 Nov 2011 17:26:11 +0000 (UTC)
commit 0d454db24547644f787926726509d78bf33c4e4f
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 9690c0e..d612657 100644
--- a/tools/browser/browser-window.c
+++ b/tools/browser/browser-window.c
@@ -511,6 +511,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]