This commit is contained in:
guinux
2016-11-02 12:48:44 +01:00
parent 06c7ead4f4
commit 1315bb265e
2 changed files with 32 additions and 0 deletions

View File

@@ -1183,6 +1183,20 @@ namespace Pamac {
return false;
}
[GtkCallback]
bool on_packages_treeview_query_tooltip (int x, int y, bool keyboard_tooltip, Gtk.Tooltip tooltip) {
Gtk.TreePath path;
Gtk.TreeIter iter;
if (packages_treeview.get_tooltip_context (ref x, ref y, keyboard_tooltip, null, out path, out iter)) {
string desc;
packages_list.get (iter, 2, out desc);
tooltip.set_markup (desc);
packages_treeview.set_tooltip_row (tooltip, path);
return true;
}
return false;
}
[GtkCallback]
bool on_aur_treeview_button_press_event (Gdk.EventButton event) {
aur_treeview.grab_focus ();
@@ -1240,6 +1254,20 @@ namespace Pamac {
return false;
}
[GtkCallback]
bool on_aur_treeview_query_tooltip (int x, int y, bool keyboard_tooltip, Gtk.Tooltip tooltip) {
Gtk.TreePath path;
Gtk.TreeIter iter;
if (aur_treeview.get_tooltip_context (ref x, ref y, keyboard_tooltip, null, out path, out iter)) {
string desc;
aur_list.get (iter, 2, out desc);
tooltip.set_markup (desc);
aur_treeview.set_tooltip_row (tooltip, path);
return true;
}
return false;
}
[GtkCallback]
void on_search_entry_activate () {
string search_string = search_entry.get_text ().strip ();