aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--lib/widgets/ephy-location-entry.c3
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b04c7e6b5..0d5636671 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
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.
+
+2005-02-01 Christian Persch <chpe@cvs.gnome.org>
+
* src/ephy-notebook.c: (motion_notify_cb),
(move_tab_to_another_notebook), (button_release_cb),
(ephy_notebook_finalize):
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