aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-05-19 05:50:26 +0800
committerChristian Persch <chpe@src.gnome.org>2008-05-19 05:50:26 +0800
commita80a05feb7bcb5100d74f47c7dca12c10ce6023f (patch)
tree8aff458dc6cbb1356a92803dabbd2f479b2c81cd
parent6bc9252a1eaafb63718702d3f55fe35f96232b76 (diff)
downloadgsoc2013-epiphany-a80a05feb7bcb5100d74f47c7dca12c10ce6023f.tar
gsoc2013-epiphany-a80a05feb7bcb5100d74f47c7dca12c10ce6023f.tar.gz
gsoc2013-epiphany-a80a05feb7bcb5100d74f47c7dca12c10ce6023f.tar.bz2
gsoc2013-epiphany-a80a05feb7bcb5100d74f47c7dca12c10ce6023f.tar.lz
gsoc2013-epiphany-a80a05feb7bcb5100d74f47c7dca12c10ce6023f.tar.xz
gsoc2013-epiphany-a80a05feb7bcb5100d74f47c7dca12c10ce6023f.tar.zst
gsoc2013-epiphany-a80a05feb7bcb5100d74f47c7dca12c10ce6023f.zip
Fix crash in PDM when clicking cookie properties button without a selected cookie. Bug #504136, patch by Michael Wolf.
svn path=/branches/gnome-2-22/; revision=8231
-rw-r--r--data/glade/epiphany.glade1
-rw-r--r--src/pdm-dialog.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/data/glade/epiphany.glade b/data/glade/epiphany.glade
index d0f95babf..593f9b559 100644
--- a/data/glade/epiphany.glade
+++ b/data/glade/epiphany.glade
@@ -213,6 +213,7 @@
<child>
<widget class="GtkButton" id="cookies_properties_button">
<property name="visible">True</property>
+ <property name="sensitive">False</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-properties</property>
diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c
index a1ce8bf23..a3b494298 100644
--- a/src/pdm-dialog.c
+++ b/src/pdm-dialog.c
@@ -803,6 +803,7 @@ pdm_dialog_cookies_construct (PdmActionInfo *info)
info->model = GTK_TREE_MODEL (liststore);
g_object_unref (liststore);
+ cookies_treeview_selection_changed_cb (selection, dialog);
g_signal_connect (selection, "changed",
G_CALLBACK(cookies_treeview_selection_changed_cb),
dialog);