aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_titlebar/view_csd.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-04-12 17:43:47 +0200
committerfiaxh <git@lightrise.org>2019-04-14 09:46:54 +0200
commit6e1938b0893b47f0673bd773bdbfdbf6465ae018 (patch)
tree04ea42d63c7ef197923b49ebc5263371d4b81b9e /main/src/ui/conversation_titlebar/view_csd.vala
parentd9e45071d0d3cd5a7a162908267c98c6366038bf (diff)
downloaddino-6e1938b0893b47f0673bd773bdbfdbf6465ae018.tar.gz
dino-6e1938b0893b47f0673bd773bdbfdbf6465ae018.zip
Clean up ConversationTitlebar
Diffstat (limited to 'main/src/ui/conversation_titlebar/view_csd.vala')
-rw-r--r--main/src/ui/conversation_titlebar/view_csd.vala36
1 files changed, 0 insertions, 36 deletions
diff --git a/main/src/ui/conversation_titlebar/view_csd.vala b/main/src/ui/conversation_titlebar/view_csd.vala
deleted file mode 100644
index 62360c42..00000000
--- a/main/src/ui/conversation_titlebar/view_csd.vala
+++ /dev/null
@@ -1,36 +0,0 @@
-using Gtk;
-using Gee;
-
-using Dino.Entities;
-
-namespace Dino.Ui {
-
-public class ConversationTitlebarCsd : Gtk.HeaderBar {
-
- private StreamInteractor stream_interactor;
- private Window window;
-
- public ConversationTitlebarCsd(StreamInteractor stream_interactor, Window window) {
- this.stream_interactor = stream_interactor;
- this.window = window;
-
- this.get_style_context().add_class("dino-right");
- show_close_button = true;
- hexpand = true;
-
- Application app = GLib.Application.get_default() as Application;
- ArrayList<Plugins.ConversationTitlebarWidget> widgets = new ArrayList<Plugins.ConversationTitlebarWidget>();
- foreach(var e in app.plugin_registry.conversation_titlebar_entries) {
- Plugins.ConversationTitlebarWidget widget = e.get_widget(Plugins.WidgetType.GTK);
- if (widget != null) {
- widgets.insert(0, widget);
- }
- }
- foreach (var w in widgets) {
- Button gtk_widget = (Gtk.Button)w;
- this.pack_end(gtk_widget);
- }
- }
-}
-
-}