Use tabs
This commit is contained in:
parent
225acd0ce2
commit
33b5dc1c75
|
@ -53,14 +53,14 @@ url_treeview_url_clicked_cb (GtkWidget *view, GdkEventButton *event,
|
||||||
GtkTreePath *path;
|
GtkTreePath *path;
|
||||||
GtkTreeView *tree = GTK_TREE_VIEW (view);
|
GtkTreeView *tree = GTK_TREE_VIEW (view);
|
||||||
|
|
||||||
if (!event || !gtk_tree_view_get_path_at_pos (tree, event->x, event->y, &path, 0, 0, 0))
|
if (!event || !gtk_tree_view_get_path_at_pos (tree, event->x, event->y, &path, 0, 0, 0))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* select what they right-clicked on */
|
/* select what they right-clicked on */
|
||||||
sel = gtk_tree_view_get_selection (tree);
|
sel = gtk_tree_view_get_selection (tree);
|
||||||
gtk_tree_selection_unselect_all (sel);
|
gtk_tree_selection_unselect_all (sel);
|
||||||
gtk_tree_selection_select_path (sel, path);
|
gtk_tree_selection_select_path (sel, path);
|
||||||
gtk_tree_path_free (path);
|
gtk_tree_path_free (path);
|
||||||
|
|
||||||
if (!gtkutil_treeview_get_selected (GTK_TREE_VIEW (view), &iter,
|
if (!gtkutil_treeview_get_selected (GTK_TREE_VIEW (view), &iter,
|
||||||
URL_COLUMN, &url, -1))
|
URL_COLUMN, &url, -1))
|
||||||
|
|
Loading…
Reference in New Issue