Commit 6eee5bd4 authored by scott's avatar scott
Browse files

Fixed for new GTK refcounting nonsense. (Let's hope they're done

breaking the Gimp...)
parent e43e51b4
Mon Feb 2 19:19:16 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* app/channels_dialog.c:
* app/layers_dialog.c: Added gtk_widget_ref and gtk_widget_unref
calls to keep channel & layer widgets from dying when reordering
the channel/layer stacks.
Sat Jan 31 20:49:11 EST 1998 Adrian Likins <adrian@gimp.org>
* plug-ins/edge.c: added a check so it wouldnt segfault when
......
......@@ -655,6 +655,7 @@ channels_dialog_position_channel (ChannelWidget *channel_widget,
/* Add it back at the proper index */
gtk_list_insert_items (GTK_LIST (channelsD->channel_list), list, new_index + channelsD->num_components);
}
......@@ -700,6 +701,7 @@ channels_dialog_remove_channel (ChannelWidget *channel_widget)
gtk_list_remove_items (GTK_LIST (channelsD->channel_list), list);
gtk_widget_destroy (channel_widget->list_item);
gtk_widget_unref (channel_widget->list_item);
suspend_gimage_notify--;
......@@ -952,6 +954,7 @@ create_channel_widget (GImage *gimage,
GtkWidget *alignment;
list_item = gtk_list_item_new ();
gtk_widget_ref (GTK_OBJECT (list_item));
/* create the channel widget and add it to the list */
channel_widget = (ChannelWidget *) g_malloc (sizeof (ChannelWidget));
......
......@@ -655,6 +655,7 @@ channels_dialog_position_channel (ChannelWidget *channel_widget,
/* Add it back at the proper index */
gtk_list_insert_items (GTK_LIST (channelsD->channel_list), list, new_index + channelsD->num_components);
}
......@@ -700,6 +701,7 @@ channels_dialog_remove_channel (ChannelWidget *channel_widget)
gtk_list_remove_items (GTK_LIST (channelsD->channel_list), list);
gtk_widget_destroy (channel_widget->list_item);
gtk_widget_unref (channel_widget->list_item);
suspend_gimage_notify--;
......@@ -952,6 +954,7 @@ create_channel_widget (GImage *gimage,
GtkWidget *alignment;
list_item = gtk_list_item_new ();
gtk_widget_ref (GTK_OBJECT (list_item));
/* create the channel widget and add it to the list */
channel_widget = (ChannelWidget *) g_malloc (sizeof (ChannelWidget));
......
......@@ -1287,6 +1287,7 @@ layers_dialog_remove_layer (Layer * layer)
/* Delete the list item */
gtk_widget_destroy (layer_widget->list_item);
gtk_widget_unref (layer_widget->list_item);
suspend_gimage_notify--;
......@@ -1856,6 +1857,7 @@ create_layer_widget (GImage *gimage,
GtkWidget *alignment;
list_item = gtk_list_item_new ();
gtk_widget_ref (GTK_OBJECT (list_item));
/* create the layer widget and add it to the list */
layer_widget = (LayerWidget *) g_malloc (sizeof (LayerWidget));
......
......@@ -1287,6 +1287,7 @@ layers_dialog_remove_layer (Layer * layer)
/* Delete the list item */
gtk_widget_destroy (layer_widget->list_item);
gtk_widget_unref (layer_widget->list_item);
suspend_gimage_notify--;
......@@ -1856,6 +1857,7 @@ create_layer_widget (GImage *gimage,
GtkWidget *alignment;
list_item = gtk_list_item_new ();
gtk_widget_ref (GTK_OBJECT (list_item));
/* create the layer widget and add it to the list */
layer_widget = (LayerWidget *) g_malloc (sizeof (LayerWidget));
......
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