[gimp] app: use GimpDeviceInfo's accessors
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use GimpDeviceInfo's accessors
- Date: Mon, 28 Feb 2011 14:55:28 +0000 (UTC)
commit b21f5be73f9ae90e88eb6ca8a7f65af8b4d844fa
Author: Michael Natterer <mitch gimp org>
Date: Mon Feb 28 15:55:02 2011 +0100
app: use GimpDeviceInfo's accessors
app/widgets/gimpdevicestatus.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpdevicestatus.c b/app/widgets/gimpdevicestatus.c
index d8121ad..159e9fd 100644
--- a/app/widgets/gimpdevicestatus.c
+++ b/app/widgets/gimpdevicestatus.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]