blob: a51d7d43546f5b8b3c04de25feb666007b4b5d03 (
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
|
using Gtk;
using Gee;
using Dino.Entities;
namespace Dino.Ui {
public class SearchMenuEntry : Plugins.ConversationTitlebarEntry, Object {
public string id { get { return "search"; } }
public double order { get { return 1; } }
public ToggleButton button = new ToggleButton() { tooltip_text=_("Search messages") };
public SearchMenuEntry() {
button.set_icon_name("system-search-symbolic");
}
public new void set_conversation(Conversation conversation) { }
public new void unset_conversation() { }
public Object? get_widget(Plugins.WidgetType type) {
if (type != Plugins.WidgetType.GTK4) return null;
return button;
}
}
}
|