81 lines
2.5 KiB
Diff
81 lines
2.5 KiB
Diff
Index: plugins/publish-calendar/Makefile.am
|
|
===================================================================
|
|
--- plugins/publish-calendar/Makefile.am.orig
|
|
+++ plugins/publish-calendar/Makefile.am
|
|
@@ -1,14 +1,14 @@
|
|
INCLUDES = \
|
|
-I$(top_srcdir) \
|
|
$(EVOLUTION_CALENDAR_CFLAGS) \
|
|
- -DEVOLUTION_PLUGINDIR="\"$(plugindir)\""
|
|
+ -DEVOLUTION_GLADEDIR=\""$(gladedir)"\"
|
|
|
|
@EVO_PLUGIN_RULE@
|
|
|
|
plugin_DATA = \
|
|
org-gnome-publish-calendar.eplug \
|
|
- org-gnome-publish-calendar.xml \
|
|
- publish-calendar.glade
|
|
+ org-gnome-publish-calendar.xml
|
|
+
|
|
plugin_LTLIBRARIES = liborg-gnome-publish-calendar.la
|
|
|
|
liborg_gnome_publish_calendar_la_SOURCES = \
|
|
Index: plugins/publish-calendar/publish-calendar.c
|
|
===================================================================
|
|
--- plugins/publish-calendar/publish-calendar.c.orig
|
|
+++ plugins/publish-calendar/publish-calendar.c
|
|
@@ -35,6 +35,8 @@
|
|
#include "publish-format-fb.h"
|
|
#include "publish-format-ical.h"
|
|
|
|
+#define GLADE_FILENAME EVOLUTION_GLADEDIR "/publish-calendar.glade"
|
|
+
|
|
static GtkListStore *store = NULL;
|
|
static GHashTable *uri_timeouts = NULL;
|
|
static GSList *publish_uris = NULL;
|
|
@@ -472,13 +474,8 @@ publish_calendar_locations (EPlugin *epl
|
|
GSList *l;
|
|
GtkTreeIter iter;
|
|
GConfClient *client;
|
|
- char *gladefile;
|
|
|
|
- gladefile = g_build_filename (EVOLUTION_PLUGINDIR,
|
|
- "publish-calendar.glade",
|
|
- NULL);
|
|
- xml = glade_xml_new (gladefile, "toplevel", NULL);
|
|
- g_free (gladefile);
|
|
+ xml = glade_xml_new (GLADE_FILENAME, "toplevel", NULL);
|
|
|
|
ui->treeview = glade_xml_get_widget (xml, "url list");
|
|
if (store == NULL)
|
|
Index: plugins/publish-calendar/url-editor-dialog.c
|
|
===================================================================
|
|
--- plugins/publish-calendar/url-editor-dialog.c.orig
|
|
+++ plugins/publish-calendar/url-editor-dialog.c
|
|
@@ -27,6 +27,8 @@
|
|
#include <string.h>
|
|
#include <e-util/e-util-private.h>
|
|
|
|
+#define GLADE_FILENAME EVOLUTION_GLADEDIR "/publish-calendar.glade"
|
|
+
|
|
static GtkDialogClass *parent_class = NULL;
|
|
|
|
static void
|
|
@@ -305,15 +307,10 @@ url_editor_dialog_construct (UrlEditorDi
|
|
GConfClient *gconf;
|
|
GtkSizeGroup *group;
|
|
EPublishUri *uri;
|
|
- char *gladefile;
|
|
|
|
gconf = gconf_client_get_default ();
|
|
|
|
- gladefile = g_build_filename (EVOLUTION_PLUGINDIR,
|
|
- "publish-calendar.glade",
|
|
- NULL);
|
|
- gui = glade_xml_new (gladefile, "publishing toplevel", NULL);
|
|
- g_free (gladefile);
|
|
+ gui = glade_xml_new (GLADE_FILENAME, "publishing toplevel", NULL);
|
|
dialog->gui = gui;
|
|
|
|
#define GW(name) ((dialog->name) = glade_xml_get_widget (dialog->gui, #name))
|