diff --git a/dub.json b/dub.json index e9dbae2..215e082 100644 --- a/dub.json +++ b/dub.json @@ -5,7 +5,7 @@ "copyright": "Copyright © 2020, Tristan B. Kildaire", "dependencies": { "gtk-d": "~>3.9.0", - "libdnet": "~>0.1.8" + "libdnet": "~>0.1.12" }, "description": "GTK graphical DNET client", "license": "GPL v3", diff --git a/dub.selections.json b/dub.selections.json index dccd800..894e956 100644 --- a/dub.selections.json +++ b/dub.selections.json @@ -3,7 +3,7 @@ "versions": { "bformat": "1.0.8", "gtk-d": "3.9.0", - "libdnet": "0.1.8", + "libdnet": "0.1.12", "tristanable": "0.1.1" } } diff --git a/source/Channel.d b/source/Channel.d index 26f9331..1dd0bee 100644 --- a/source/Channel.d +++ b/source/Channel.d @@ -170,10 +170,10 @@ public final class Channel string[] statusMessage = split(client.getMemberInfo(userHover), ","); /* First one is prescence */ - string prescence = statusMessage[0]; + string prescence = client.getProperty(userHover, "pres");//statusMessage[0]; /* Netx is status message */ - string status = statusMessage[1]; + string status = client.getProperty(userHover, "status");//statusMessage[1]; /* Set the icon */ tooltip.setIconFromIconName(statusToGtkIcon(prescence), GtkIconSize.DIALOG); diff --git a/source/gui.d b/source/gui.d index e7aa80d..2ca0870 100644 --- a/source/gui.d +++ b/source/gui.d @@ -241,6 +241,8 @@ public class GUI : Thread /* TODO: Add handler for clicking label that lets you join the channel */ channelsList.addOnSelectedRowsChanged(&selectChannel); + //channelsList.add + win.showAll(); } @@ -282,7 +284,9 @@ public class GUI : Thread Connection currentConnection = connections[notebook.getCurrentPage()]; /* Set the status */ - currentConnection.getClient().setStatus(x.getLabel()~",Hey there"); + currentConnection.getClient().setStatus(x.getLabel()~",Hey there"); /* TODO: Remove */ + currentConnection.getClient().setProperty("pres", x.getLabel()); + currentConnection.getClient().setProperty("status", x.getLabel()~"is plikking"); } private MenuBar initializeMenuBar()