Adjust Delete insensitivity

This commit is contained in:
Matthias Clasen 2006-06-08 03:51:21 +00:00
parent cc9fcdbce5
commit 6ea0b7d046
3 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2006-06-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (popup_targets_received): Make Delete
menuitem insensitive if entry is not editable. (#344232,
Milosz Derezynski)
* gtk/gtkprintoperation.c: Add some docs.
* gtk/gtk.symbols: Add gtk_print_operation_set_allow_async.

View File

@ -1,5 +1,9 @@
2006-06-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (popup_targets_received): Make Delete
menuitem insensitive if entry is not editable. (#344232,
Milosz Derezynski)
* gtk/gtkprintoperation.c: Add some docs.
* gtk/gtk.symbols: Add gtk_print_operation_set_allow_async.

View File

@ -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);