aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-02-02 03:32:12 +0800
committerChristian Persch <chpe@src.gnome.org>2005-02-02 03:32:12 +0800
commit6345432b15c7ce20dad3844d72592e8ecbbe1577 (patch)
tree64d771741f4201856dd293af35dd93d964b58496 /lib
parent2f4357ef874b11caa38200119264e9826d72d689 (diff)
downloadgsoc2013-epiphany-6345432b15c7ce20dad3844d72592e8ecbbe1577.tar
gsoc2013-epiphany-6345432b15c7ce20dad3844d72592e8ecbbe1577.tar.gz
gsoc2013-epiphany-6345432b15c7ce20dad3844d72592e8ecbbe1577.tar.bz2
gsoc2013-epiphany-6345432b15c7ce20dad3844d72592e8ecbbe1577.tar.lz
gsoc2013-epiphany-6345432b15c7ce20dad3844d72592e8ecbbe1577.tar.xz
gsoc2013-epiphany-6345432b15c7ce20dad3844d72592e8ecbbe1577.tar.zst
gsoc2013-epiphany-6345432b15c7ce20dad3844d72592e8ecbbe1577.zip
Set "Clear" context menu entry insensitive in lockdown mode. Fixes bug
2005-02-01 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-location-entry.c: (entry_populate_popup_cb): Set "Clear" context menu entry insensitive in lockdown mode. Fixes bug #165540.
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-location-entry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 3a922d5c3..b4df339db 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -407,6 +407,7 @@ entry_populate_popup_cb (GtkEntry *entry,
GtkMenu *menu,
EphyLocationEntry *lentry)
{
+ EphyLocationEntryPrivate *priv = lentry->priv;
GtkWidget *image;
GtkWidget *menuitem;
GList *children, *item;
@@ -424,6 +425,8 @@ entry_populate_popup_cb (GtkEntry *entry,
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM(menuitem), image);
g_signal_connect (menuitem , "activate",
G_CALLBACK (entry_clear_activate_cb), lentry);
+ gtk_widget_set_sensitive (menuitem,
+ gtk_editable_get_editable (GTK_EDITABLE (priv->entry)));
gtk_widget_show (menuitem);
/* search for the 2nd separator (the one after Select All) in the context