fix #178
This commit is contained in:
@@ -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 ();
|
||||
|
Reference in New Issue
Block a user