Commit bf1b9651 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

don't use the image container as display container.

2005-04-13  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpimagedock.c (gimp_image_dock_image_changed):
	don't use the image container as display container.
parent c3807c6a
2005-04-13 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpimagedock.c (gimp_image_dock_image_changed):
don't use the image container as display container.
2005-04-13 Sven Neumann <sven@gimp.org>
* app/core/gimpdatafactory.[ch]: added gimp_data_factory_refresh().
......
......@@ -586,12 +586,14 @@ gimp_image_dock_image_changed (GimpContext *context,
GimpImage *gimage,
GimpDock *dock)
{
GimpImageDock *image_dock = GIMP_IMAGE_DOCK (dock);
GimpContainer *container = image_dock->image_container;
GimpImageDock *image_dock = GIMP_IMAGE_DOCK (dock);
GimpContainer *image_container = image_dock->image_container;
GimpContainer *display_container = image_dock->display_container;
if (gimage == NULL && ! gimp_container_is_empty (container))
if (gimage == NULL && ! gimp_container_is_empty (image_container))
{
gimage = GIMP_IMAGE (gimp_container_get_child_by_index (container, 0));
gimage = GIMP_IMAGE (gimp_container_get_child_by_index (image_container,
0));
if (gimage)
{
......@@ -606,7 +608,7 @@ gimp_image_dock_image_changed (GimpContext *context,
g_signal_stop_emission_by_name (context, "image_changed");
}
}
else if (gimage != NULL && ! gimp_container_is_empty (container))
else if (gimage != NULL && ! gimp_container_is_empty (display_container))
{
GimpObject *gdisp;
GimpImage *gdisp_gimage;
......@@ -631,7 +633,7 @@ gimp_image_dock_image_changed (GimpContext *context,
{
GList *list;
for (list = GIMP_LIST (container)->list;
for (list = GIMP_LIST (display_container)->list;
list;
list = g_list_next (list))
{
......
......@@ -586,12 +586,14 @@ gimp_image_dock_image_changed (GimpContext *context,
GimpImage *gimage,
GimpDock *dock)
{
GimpImageDock *image_dock = GIMP_IMAGE_DOCK (dock);
GimpContainer *container = image_dock->image_container;
GimpImageDock *image_dock = GIMP_IMAGE_DOCK (dock);
GimpContainer *image_container = image_dock->image_container;
GimpContainer *display_container = image_dock->display_container;
if (gimage == NULL && ! gimp_container_is_empty (container))
if (gimage == NULL && ! gimp_container_is_empty (image_container))
{
gimage = GIMP_IMAGE (gimp_container_get_child_by_index (container, 0));
gimage = GIMP_IMAGE (gimp_container_get_child_by_index (image_container,
0));
if (gimage)
{
......@@ -606,7 +608,7 @@ gimp_image_dock_image_changed (GimpContext *context,
g_signal_stop_emission_by_name (context, "image_changed");
}
}
else if (gimage != NULL && ! gimp_container_is_empty (container))
else if (gimage != NULL && ! gimp_container_is_empty (display_container))
{
GimpObject *gdisp;
GimpImage *gdisp_gimage;
......@@ -631,7 +633,7 @@ gimp_image_dock_image_changed (GimpContext *context,
{
GList *list;
for (list = GIMP_LIST (container)->list;
for (list = GIMP_LIST (display_container)->list;
list;
list = g_list_next (list))
{
......
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