aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_titlebar/search_entry.vala
blob: ff0ff325683bd852d4bd9d25d935a0ca1b32add2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using Gtk;
using Gee;

using Dino.Entities;

namespace Dino.Ui {

public class SearchMenuEntry : Plugins.ConversationTitlebarEntry, Object {
    public string id { get { return "search"; } }

    public GlobalSearchButton search_button = new GlobalSearchButton() { visible = true };

    public SearchMenuEntry() {
        search_button.set_image(new Gtk.Image.from_icon_name("system-search-symbolic", Gtk.IconSize.MENU) { visible = true });
    }

    public double order { get { return 1; } }
    public Plugins.ConversationTitlebarWidget? get_widget(Plugins.WidgetType type) {
        if (type == Plugins.WidgetType.GTK) {
            return search_button;
        }
        return null;
    }
}

public class GlobalSearchButton : Plugins.ConversationTitlebarWidget, Gtk.ToggleButton {
    public new void set_conversation(Conversation conversation) { }
}

}