evolution-exchange r1655 - in trunk: . storage
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-exchange r1655 - in trunk: . storage
- Date: Tue, 13 May 2008 18:14:52 +0100 (BST)
Author: tml
Date: Tue May 13 17:14:52 2008
New Revision: 1655
URL: http://svn.gnome.org/viewvc/evolution-exchange?rev=1655&view=rev
Log:
2008-05-13 Tor Lillqvist <tml novell com>
More outstanding Win32 portability changes from a couple of years
ago.
* storage/exchange-autoconfig-wizard.c: Construct glade and png file
pathnames at run-time. Don't use compile-time gladedir and
imagesdir on Windows.
Modified:
trunk/ChangeLog
trunk/storage/exchange-autoconfig-wizard.c
Modified: trunk/storage/exchange-autoconfig-wizard.c
==============================================================================
--- trunk/storage/exchange-autoconfig-wizard.c (original)
+++ trunk/storage/exchange-autoconfig-wizard.c Tue May 13 17:14:52 2008
@@ -41,6 +41,18 @@
#include <libgnomeui/gnome-druid.h>
#include <libgnomeui/gnome-druid-page-standard.h>
+#include "exchange-storage.h"
+
+#ifdef G_OS_WIN32
+
+#undef CONNECTOR_GLADEDIR
+#define CONNECTOR_GLADEDIR _exchange_storage_gladedir
+
+#undef CONNECTOR_IMAGESDIR
+#define CONNECTOR_IMAGESDIR _exchange_storage_imagesdir
+
+#endif
+
typedef struct {
GnomeDruid *druid;
@@ -109,10 +121,15 @@
autoconfig_gui_new (void)
{
ExchangeAutoconfigGUI *gui;
+ char *gladefile;
gui = g_new0 (ExchangeAutoconfigGUI, 1);
- gui->xml = glade_xml_new (CONNECTOR_GLADEDIR "/exchange-autoconfig-wizard.glade", NULL, NULL);
+ gladefile = g_build_filename (CONNECTOR_GLADEDIR,
+ "exchange-autoconfig-wizard.glade",
+ NULL);
+ gui->xml = glade_xml_new (gladefile, NULL, NULL);
+ g_free (gladefile);
if (!gui->xml) {
g_warning ("Could not find exchange-autoconfig-wizard.glade");
g_free (gui);
@@ -605,6 +622,7 @@
GtkWidget *page;
GdkPixbuf *icon;
int i;
+ gchar *pngfile;
gui = autoconfig_gui_new ();
g_return_if_fail (gui);
@@ -614,7 +632,11 @@
gui->window = (GtkWindow *)glade_xml_get_widget (gui->xml, "window");
gui->pages = g_ptr_array_new ();
- icon = gdk_pixbuf_new_from_file (CONNECTOR_IMAGESDIR "/connector.png", NULL);
+ pngfile = g_build_filename (CONNECTOR_IMAGESDIR,
+ "connector.png",
+ NULL);
+ icon = gdk_pixbuf_new_from_file (pngfile, NULL);
+ g_free (pngfile);
for (i = 0; i < num_autoconfig_pages; i++) {
page = glade_xml_get_widget (gui->xml, autoconfig_pages[i].page_name);
g_ptr_array_add (gui->pages, page);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]