Bookmark panel buttons sensitive with selection
Related to: https://bugs.launchpad.net/midori/+bug/711482
This commit is contained in:
parent
7691130cc3
commit
7c08b7cce5
1 changed files with 7 additions and 4 deletions
|
@ -895,7 +895,7 @@ midori_bookmarks_row_collapsed_cb (GtkTreeView *treeview,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
midori_bookmarks_cursor_changed_cb (GtkTreeView *treeview,
|
midori_bookmarks_selection_changed_cb (GtkTreeSelection *treeview,
|
||||||
MidoriBookmarks *bookmarks)
|
MidoriBookmarks *bookmarks)
|
||||||
{
|
{
|
||||||
midori_bookmarks_toolbar_update (bookmarks);
|
midori_bookmarks_toolbar_update (bookmarks);
|
||||||
|
@ -949,6 +949,7 @@ midori_bookmarks_init (MidoriBookmarks* bookmarks)
|
||||||
GtkTreeViewColumn* column;
|
GtkTreeViewColumn* column;
|
||||||
GtkCellRenderer* renderer_pixbuf;
|
GtkCellRenderer* renderer_pixbuf;
|
||||||
GtkCellRenderer* renderer_text;
|
GtkCellRenderer* renderer_text;
|
||||||
|
GtkTreeSelection* selection;
|
||||||
|
|
||||||
/* Create the filter entry */
|
/* Create the filter entry */
|
||||||
entry = gtk_icon_entry_new ();
|
entry = gtk_icon_entry_new ();
|
||||||
|
@ -1002,9 +1003,11 @@ midori_bookmarks_init (MidoriBookmarks* bookmarks)
|
||||||
midori_bookmarks_row_expanded_cb, bookmarks,
|
midori_bookmarks_row_expanded_cb, bookmarks,
|
||||||
"signal::row-collapsed",
|
"signal::row-collapsed",
|
||||||
midori_bookmarks_row_collapsed_cb, bookmarks,
|
midori_bookmarks_row_collapsed_cb, bookmarks,
|
||||||
"signal::cursor_changed",
|
|
||||||
midori_bookmarks_cursor_changed_cb, bookmarks,
|
|
||||||
NULL);
|
NULL);
|
||||||
|
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
|
||||||
|
g_signal_connect_after (selection, "changed",
|
||||||
|
G_CALLBACK (midori_bookmarks_selection_changed_cb),
|
||||||
|
bookmarks);
|
||||||
gtk_widget_show (treeview);
|
gtk_widget_show (treeview);
|
||||||
gtk_box_pack_start (GTK_BOX (bookmarks), treeview, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (bookmarks), treeview, TRUE, TRUE, 0);
|
||||||
bookmarks->treeview = treeview;
|
bookmarks->treeview = treeview;
|
||||||
|
|
Loading…
Reference in a new issue