blob: b479ff78c8eb5205d47a820aa3108303e94ae961 (
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=Util.string_if_tooltips_active(_("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;
}
}
}
|