app: use GimpDeviceInfo's accessors

This commit is contained in:
Michael Natterer 2011-02-28 15:55:02 +01:00
parent c49a7113e5
commit b21f5be73f
1 changed files with 2 additions and 3 deletions

View File

@ -427,9 +427,8 @@ static void
gimp_device_status_update_entry (GimpDeviceInfo *device_info,
GimpDeviceStatusEntry *entry)
{
GdkDevice *device = gimp_device_info_get_device (device_info, NULL);
if (! device || device->mode == GDK_MODE_DISABLED)
if (! gimp_device_info_get_device (device_info, NULL) ||
gimp_device_info_get_mode (device_info) == GDK_MODE_DISABLED)
{
gtk_widget_hide (entry->table);
}