diff --git a/source/Channel.d b/source/Channel.d index b4481c2..0d237e1 100644 --- a/source/Channel.d +++ b/source/Channel.d @@ -208,11 +208,14 @@ public final class Channel /* First one is prescence */ string prescence = statusMessage[0]; + + /* Netx is status message */ + string status = statusMessage[1]; d.setIconFromIconName(statusToGtkIcon(prescence), GtkIconSize.DIALOG); // d.setText(); - d.setMarkup(""~userHover~"\n"~prescence); + d.setMarkup(""~userHover~"\n"~prescence~"\n"~status~""); // /* The notification box */ // Box notificationBox = new Box(GtkOrientation.VERTICAL, 1); diff --git a/source/Connection.d b/source/Connection.d index c6e9e76..efdf60a 100644 --- a/source/Connection.d +++ b/source/Connection.d @@ -28,6 +28,7 @@ public final class Connection : Thread private DClient client; private Address address; private string[] auth; + private string statusText; /* TODO: Check if we need to protect */ /* TODO: So far usage is in signal handlers (mutex safved) and within te-tl lock for notifications */ @@ -42,6 +43,15 @@ public final class Connection : Thread private Mutex chansLock; private Channel focusedChan; + + // public void setPrescence(string pres) + // { + // /* The new status */ + // string newStatus = + // statusText = ""; + // statusText = + // } + this(GUI gui, Address address, string[] auth) { super(&worker); @@ -52,6 +62,8 @@ public final class Connection : Thread /* Initialize locks */ initializeLocks(); + statusText = "Hey there, I'm using Dnet!"; + /* Start the notification atcher */ start(); } diff --git a/source/gui.d b/source/gui.d index 16ed71e..47c9ba9 100644 --- a/source/gui.d +++ b/source/gui.d @@ -187,7 +187,7 @@ public class GUI : Thread Connection currentConnection = connections[notebook.getCurrentPage()]; /* Set the status */ - currentConnection.getClient().setStatus(x.getLabel()); + currentConnection.getClient().setStatus(x.getLabel()~",Hey there"); } private MenuBar initializeMenuBar()