session_info->widget is not a GimpDeviceStatus but its parent

2003-09-19  Michael Natterer  <mitch@gimp.org>

	* app/gui/gui.c (gui_device_change_notify): session_info->widget
	is not a GimpDeviceStatus but its parent GimpDockable. Use the
	dockable's child instead. Fixes bug #122684.
This commit is contained in:
Michael Natterer 2003-09-19 12:38:30 +00:00 committed by Michael Natterer
parent da6c31af1f
commit f8d46710e1
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-09-19 Michael Natterer <mitch@gimp.org>
* app/gui/gui.c (gui_device_change_notify): session_info->widget
is not a GimpDeviceStatus but its parent GimpDockable. Use the
dockable's child instead. Fixes bug #122684.
2003-09-19 Michael Natterer <mitch@gimp.org>
* app/tools/gimpcolorpickertool.c: moved the call to

View File

@ -638,7 +638,13 @@ gui_device_change_notify (Gimp *gimp)
"gimp-device-status");
if (session_info && session_info->widget)
gimp_device_status_update (GIMP_DEVICE_STATUS (session_info->widget));
{
GtkWidget *device_status;
device_status = GTK_BIN (session_info->widget)->child;
gimp_device_status_update (GIMP_DEVICE_STATUS (device_status));
}
}