Commit caea6190 authored by Sven Neumann's avatar Sven Neumann
Browse files

The sensitivity of the buttons in the Layers&Channels-dialog wasn't set

correctly when deleting an image. This is fixed now.


--Sven
parent bcc86be0
Sat Apr 4 15:43:28 MEST 1998 Sven Neumann <sven@gimp.org>
* app/ops_buttons.[c|h]
* app/channels_dialog.c
* app/layers_dialog.c: The sensitivity of the buttons wasn't set
correctly when deleting an image.
Fri Apr 3 13:49:38 MEST 1998 Sven Neumann <sven@gimp.org>
* app/menus.c
......
......@@ -453,6 +453,8 @@ channels_dialog_update (int gimage_id)
void
channels_dialog_clear ()
{
ops_button_box_set_insensitive (channels_ops_buttons);
suspend_gimage_notify++;
gtk_list_clear_items (GTK_LIST (channelsD->channel_list), 0, -1);
suspend_gimage_notify--;
......
......@@ -453,6 +453,8 @@ channels_dialog_update (int gimage_id)
void
channels_dialog_clear ()
{
ops_button_box_set_insensitive (channels_ops_buttons);
suspend_gimage_notify++;
gtk_list_clear_items (GTK_LIST (channelsD->channel_list), 0, -1);
suspend_gimage_notify--;
......
......@@ -859,6 +859,8 @@ layers_dialog_update (int gimage_id)
void
layers_dialog_clear ()
{
ops_button_box_set_insensitive (layers_ops_buttons);
layersD->gimage_id = -1;
gtk_list_clear_items (GTK_LIST (layersD->layer_list), 0, -1);
}
......
......@@ -859,6 +859,8 @@ layers_dialog_update (int gimage_id)
void
layers_dialog_clear ()
{
ops_button_box_set_insensitive (layers_ops_buttons);
layersD->gimage_id = -1;
gtk_list_clear_items (GTK_LIST (layersD->layer_list), 0, -1);
}
......
......@@ -91,6 +91,18 @@ GtkWidget *ops_button_box_new (GtkWidget *parent,
return (button_box);
}
void
ops_button_box_set_insensitive(OpsButton *ops_buttons)
{
while (ops_buttons->widget)
{
ops_button_set_sensitive (*ops_buttons, FALSE);
ops_buttons++;
}
}
void
ops_button_set_sensitive(OpsButton ops_button,
gint sensitive)
......@@ -110,3 +122,4 @@ ops_button_set_sensitive(OpsButton ops_button,
gtk_widget_set_sensitive (ops_button.widget, sensitive);
}
......@@ -47,7 +47,8 @@ struct _OpsButton
GtkWidget * ops_button_box_new (GtkWidget *, /* parent widget */
GtkTooltips *,
OpsButton *);
void ops_button_set_sensitive (OpsButton, gint);
void ops_button_box_set_insensitive (OpsButton *);
void ops_button_set_sensitive (OpsButton, gint);
#endif /* __OPS_BUTTONS_H__ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment