diff --git a/source/Channel.d b/source/Channel.d index 33ffb5f..3b257fe 100644 --- a/source/Channel.d +++ b/source/Channel.d @@ -26,6 +26,8 @@ import pango.PgAttributeList; import pango.PgAttribute; import Connection; +import gogga; + public final class Channel { private DClient client; @@ -135,6 +137,7 @@ public final class Channel import gtk.FileChooserDialog; /* TODO: Set parent */ FileChooserDialog fileChooser = new FileChooserDialog("Send file to "~channelName, null, FileChooserAction.OPEN); fileChooser.run(); + gprintln("Selected file: "~fileChooser.getFilename()); } import gtk.EditableIF; diff --git a/source/ProfileWIndow.d b/source/ProfileWIndow.d index d72ecfd..1406291 100644 --- a/source/ProfileWIndow.d +++ b/source/ProfileWIndow.d @@ -32,20 +32,35 @@ public final class ProfileWindow /* Create a Box for contents */ Box profileBox = new Box(GtkOrientation.VERTICAL, 1); + + /* Create a Image for the profile picture */ + Image profileImage = new Image("/home/deavmi/Downloads/logo.png"); + profileBox.add(profileImage); + // profileImage. + /* Create the username label */ Label usernameTitle = new Label(""); usernameTitle.setMarkup(""~username~""); profileBox.add(usernameTitle); - Image profileImage = new Image("/home/deavmi/Downloads/5207740.jpg"); - //profileWindow.add(profileImage); - - + /* Display all props (keys) */ string[] props = connection.getClient().getProperties(username); profileBox.add(new Label(to!(string)(props))); + /* Display all prop values */ + string[] propValues; + foreach(string property; props) + { + propValues ~= connection.getClient().getProperty(username, property); + } + profileBox.add(new Label(to!(string)(propValues))); + + + profileWindow.add(profileBox); profileWindow.showAll(); + // profileWindow.unmaximize(); + // profileWindow.setAttachedTo() } } \ No newline at end of file