aboutsummaryrefslogtreecommitdiff
path: root/plugins/http-files/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/http-files/src')
-rw-r--r--plugins/http-files/src/contact_titlebar_entry.vala13
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/http-files/src/contact_titlebar_entry.vala b/plugins/http-files/src/contact_titlebar_entry.vala
index 74966c0e..064adca9 100644
--- a/plugins/http-files/src/contact_titlebar_entry.vala
+++ b/plugins/http-files/src/contact_titlebar_entry.vala
@@ -4,8 +4,8 @@ using Dino.Entities;
namespace Dino.Plugins.HttpFiles {
-public class ConversationsTitlebarEntry : Plugins.ConversationTitlebarEntry {
- public override string id { get { return "send_files"; } }
+public class ConversationsTitlebarEntry : Plugins.ConversationTitlebarEntry, Object {
+ public string id { get { return "send_files"; } }
StreamInteractor stream_interactor;
@@ -13,9 +13,12 @@ public class ConversationsTitlebarEntry : Plugins.ConversationTitlebarEntry {
this.stream_interactor = stream_interactor;
}
- public override double order { get { return 4; } }
- public override Plugins.ConversationTitlebarWidget get_widget() {
- return new ConversationTitlebarWidget(stream_interactor) { visible=true };
+ public double order { get { return 4; } }
+ public Plugins.ConversationTitlebarWidget get_widget(WidgetType type) {
+ if (type == WidgetType.GTK) {
+ return new ConversationTitlebarWidget(stream_interactor) { visible=true };
+ }
+ return null;
}
}