[gedit-collaboration] Get data dir from peas base extension
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-collaboration] Get data dir from peas base extension
- Date: Sun, 3 Apr 2011 15:43:58 +0000 (UTC)
commit 13f5c3ef89f625a5a3f3a418d4b4e1f3ffba3bb2
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Sun Apr 3 17:09:15 2011 +0200
Get data dir from peas base extension
src/gedit-collaboration-actions.c | 7 +++++--
src/gedit-collaboration-window-helper-private.h | 1 -
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/gedit-collaboration-actions.c b/src/gedit-collaboration-actions.c
index 86d8fda..4b6d761 100644
--- a/src/gedit-collaboration-actions.c
+++ b/src/gedit-collaboration-actions.c
@@ -292,9 +292,12 @@ create_bookmark_dialog (GeditCollaborationWindowHelper *helper,
GeditCollaborationBookmark *bookmark)
{
GtkWidget *dialog;
+ gchar *datadir;
- dialog = gedit_collaboration_bookmark_dialog_new (helper->priv->data_dir,
- bookmark);
+ datadir = peas_extension_base_get_data_dir (PEAS_EXTENSION_BASE (helper));
+ dialog = gedit_collaboration_bookmark_dialog_new (datadir, bookmark);
+
+ g_free (datadir);
if (dialog == NULL)
{
diff --git a/src/gedit-collaboration-window-helper-private.h b/src/gedit-collaboration-window-helper-private.h
index 38dc4f1..7a01222 100644
--- a/src/gedit-collaboration-window-helper-private.h
+++ b/src/gedit-collaboration-window-helper-private.h
@@ -26,7 +26,6 @@ G_BEGIN_DECLS
struct _GeditCollaborationWindowHelperPrivate
{
GeditWindow *window;
- gchar *data_dir;
InfIo *io;
InfCertificateCredentials *certificate_credentials;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]