blob: aaef22ca244dbecab9dd80d011adcf1641e5fa65 (
plain)
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("dino-loupe-large-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;
}
}
}
|