mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
open history page on double click
This commit is contained in:
parent
e4511403ee
commit
f8114f57a5
1 changed files with 15 additions and 2 deletions
|
|
@ -197,9 +197,11 @@ class History
|
|||
$this->list
|
||||
);
|
||||
|
||||
/* @TODO row-activated
|
||||
$this->treeview->get_selection()->set_mode(
|
||||
\GtkSelectionMode::MULTIPLE
|
||||
);
|
||||
*/
|
||||
|
||||
// Compose body
|
||||
$this->body = new \GtkBox(
|
||||
|
|
@ -245,9 +247,20 @@ class History
|
|||
// Activate events
|
||||
$this->treeview->connect(
|
||||
'row-activated',
|
||||
function ()
|
||||
function ($tree)
|
||||
{
|
||||
// @TODO
|
||||
list($list, $row) = $tree->get_selection()
|
||||
->get_selected();
|
||||
|
||||
$url = $list->get_value(
|
||||
$row, 2
|
||||
);
|
||||
|
||||
$page = $this->app->blankPage();
|
||||
|
||||
$page->open(
|
||||
$url
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue