summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2006-06-08 03:51:21 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-06-08 03:51:21 +0000
commit6ea0b7d04624d5143d6d3fa3a82b32384417f340 (patch)
treed13be08281c2c5226bb55e8bab6c8ad55e4af05f /gtk/gtkentry.c
parentcc9fcdbce557b133b19acc6b141c2c6bf6acec94 (diff)
downloadgtk+-6ea0b7d04624d5143d6d3fa3a82b32384417f340.tar.gz
Adjust Delete insensitivity
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index be5532a5dd..022c3f4d84 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -4857,7 +4857,7 @@ popup_targets_received (GtkClipboard *clipboard,
gtk_widget_destroy (entry->popup_menu);
entry->popup_menu = gtk_menu_new ();
-
+ b
gtk_menu_attach_to_widget (GTK_MENU (entry->popup_menu),
GTK_WIDGET (entry),
popup_menu_detach);
@@ -4870,7 +4870,7 @@ popup_targets_received (GtkClipboard *clipboard,
entry->editable && clipboard_contains_text);
menuitem = gtk_image_menu_item_new_from_stock (GTK_STOCK_DELETE, NULL);
- gtk_widget_set_sensitive (menuitem, entry->current_pos != entry->selection_bound);
+ gtk_widget_set_sensitive (menuitem, entry->editable && entry->current_pos != entry->selection_bound);
g_signal_connect_swapped (menuitem, "activate",
G_CALLBACK (gtk_entry_delete_cb), entry);
gtk_widget_show (menuitem);