From 6345432b15c7ce20dad3844d72592e8ecbbe1577 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 1 Feb 2005 19:32:12 +0000 Subject: Set "Clear" context menu entry insensitive in lockdown mode. Fixes bug 2005-02-01 Christian Persch * lib/widgets/ephy-location-entry.c: (entry_populate_popup_cb): Set "Clear" context menu entry insensitive in lockdown mode. Fixes bug #165540. --- ChangeLog | 7 +++++++ lib/widgets/ephy-location-entry.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index b04c7e6b5..0d5636671 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-02-01 Christian Persch + + * 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 * src/ephy-notebook.c: (motion_notify_cb), 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 -- cgit v1.2.3