[gnome-mud] Quick-fix custom connection support
- From: Mart Raudsepp <mraudsepp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mud] Quick-fix custom connection support
- Date: Mon, 14 Jan 2019 18:54:10 +0000 (UTC)
commit b1932f0ee53c20f56822643bd8f82dd0691e405d
Author: Mart Raudsepp <leio gentoo org>
Date: Mon Jan 14 20:52:27 2019 +0200
Quick-fix custom connection support
Properly pass a required profile construct-only property to the
MudConnection_view constructor. Because the default profile
handling code is still missing, pass the first profile in sequence
for now, instead of the default profile.
src/mud-connections.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/mud-connections.c b/src/mud-connections.c
index 6671541..0007669 100644
--- a/src/mud-connections.c
+++ b/src/mud-connections.c
@@ -300,10 +300,12 @@ mud_connections_qconnect_cb (GtkWidget *widget,
if (strlen (host) != 0)
{
+ /* TODO: get default profile instead of what happens to be first */
+ MudProfile *profile = g_sequence_get (g_sequence_get_begin_iter (mud_profile_manager_get_profiles
(self->parent_window->profile_manager)));
view = g_object_new (MUD_TYPE_CONNECTION_VIEW,
"hostname", host,
"port", port,
- "profile-name", "Default",
+ "profile", profile,
"mud-name", (gchar *)host,
"connect-string", NULL,
"window", self->parent_window,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]