mirror of https://github.com/GNOME/gimp.git
set the Undo button insensitive, not the whole dialog (bug #134419). Also
2004-02-16 Sven Neumann <sven@gimp.org> * plug-ins/gfig/gfig.c (gfig_response): set the Undo button insensitive, not the whole dialog (bug #134419). Also start the dialog with the Undo button set insensitive.
This commit is contained in:
parent
9f654edabf
commit
09af96c12d
|
@ -1,3 +1,9 @@
|
|||
2004-02-16 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/gfig/gfig.c (gfig_response): set the Undo button
|
||||
insensitive, not the whole dialog (bug #134419). Also start the
|
||||
dialog with the Undo button set insensitive.
|
||||
|
||||
2004-02-16 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/tools/gimpcroptool.c (crop_info_create): use limits from
|
||||
|
|
|
@ -2935,6 +2935,9 @@ gfig_dialog (void)
|
|||
G_CALLBACK (gtk_main_quit),
|
||||
NULL);
|
||||
|
||||
gtk_dialog_set_response_sensitive (GTK_DIALOG (top_level_dlg),
|
||||
RESPONSE_UNDO, undo_water_mark >= 0);
|
||||
|
||||
main_hbox = gtk_hbox_new (FALSE, 4);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (main_hbox), 4);
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (top_level_dlg)->vbox), main_hbox,
|
||||
|
@ -3045,8 +3048,8 @@ gfig_response (GtkWidget *widget,
|
|||
current_obj->obj_status |= GFIG_MODIFIED;
|
||||
}
|
||||
|
||||
if (undo_water_mark < 0)
|
||||
gtk_widget_set_sensitive (widget, FALSE);
|
||||
gtk_dialog_set_response_sensitive (GTK_DIALOG (widget),
|
||||
RESPONSE_UNDO, undo_water_mark >= 0);
|
||||
break;
|
||||
|
||||
case RESPONSE_CLEAR:
|
||||
|
|
Loading…
Reference in New Issue