r6851 - dumbhippo/trunk/client/common/hippo
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r6851 - dumbhippo/trunk/client/common/hippo
- Date: Mon, 29 Oct 2007 16:42:43 -0500 (CDT)
Author: walters
Date: 2007-10-29 16:42:41 -0500 (Mon, 29 Oct 2007)
New Revision: 6851
Modified:
dumbhippo/trunk/client/common/hippo/hippo-connection.c
Log:
For opening URLs inside the mugshot process, we always use
mugshot.org rather than defaulting to online.gnome.org.
This fixes the login page and upgrade pages going to online.gnome.org.
Modified: dumbhippo/trunk/client/common/hippo/hippo-connection.c
===================================================================
--- dumbhippo/trunk/client/common/hippo/hippo-connection.c 2007-10-29 20:27:50 UTC (rev 6850)
+++ dumbhippo/trunk/client/common/hippo/hippo-connection.c 2007-10-29 21:42:41 UTC (rev 6851)
@@ -4267,16 +4267,18 @@
return "WHAT THE?";
}
-char*
-hippo_connection_make_absolute_url(HippoConnection *connection,
- const char *maybe_relative)
+
+static char *
+hippo_connection_make_absolute_url_for_server(HippoConnection *connection,
+ HippoServerType server_type,
+ const char *maybe_relative)
{
if (*maybe_relative == '/') {
char *server;
char *url;
server = hippo_platform_get_web_server(connection->platform,
- connection->auth_server_type);
+ server_type);
url = g_strdup_printf("http://%s%s", server, maybe_relative);
g_free(server);
@@ -4289,13 +4291,21 @@
}
}
+char*
+hippo_connection_make_absolute_url(HippoConnection *connection,
+ const char *maybe_relative)
+{
+ return hippo_connection_make_absolute_url_for_server(connection, connection->auth_server_type, maybe_relative);
+}
+
void
hippo_connection_open_maybe_relative_url(HippoConnection *connection,
const char *relative_url)
{
char *url;
- url = hippo_connection_make_absolute_url(connection,
- relative_url);
+ /* For opening a web page in this process, we always use the Mugshot Stacker server. */
+ url = hippo_connection_make_absolute_url_for_server(connection, HIPPO_SERVER_STACKER,
+ relative_url);
hippo_platform_open_url(connection->platform,
connection->login_browser,
url);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]