[gimp] app: grey out the names of unplugged devices



commit f0d4cf68c0e82941ab840b70e2a969cd4fbc3563
Author: Michael Natterer <mitch gimp org>
Date:   Mon Feb 15 00:47:15 2010 +0100

    app: grey out the names of unplugged devices

 app/widgets/gimpdeviceeditor.c |    5 +++++
 app/widgets/gimpdeviceeditor.h |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpdeviceeditor.c b/app/widgets/gimpdeviceeditor.c
index 65daf0e..4d511c1 100644
--- a/app/widgets/gimpdeviceeditor.c
+++ b/app/widgets/gimpdeviceeditor.c
@@ -1,6 +1,9 @@
 /* GIMP - The GNU Image Manipulation Program
  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  *
+ * gimpdeviceeditor.c
+ * Copyright (C) 2010 Michael Natterer <mitch gimp org>
+ *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 3 of the License, or
@@ -312,6 +315,8 @@ gimp_device_editor_add_device (GimpContainer    *container,
 
       gtk_tree_store_set (GTK_TREE_STORE (treeview->model), iter,
                           GIMP_CONTAINER_TREE_VIEW_COLUMN_USER_DATA, widget,
+                          GIMP_CONTAINER_TREE_VIEW_COLUMN_NAME_SENSITIVE,
+                          gimp_device_info_get_device (info, NULL) != NULL,
                           -1);
     }
 }
diff --git a/app/widgets/gimpdeviceeditor.h b/app/widgets/gimpdeviceeditor.h
index 98f223e..9eca82e 100644
--- a/app/widgets/gimpdeviceeditor.h
+++ b/app/widgets/gimpdeviceeditor.h
@@ -1,6 +1,9 @@
 /* GIMP - The GNU Image Manipulation Program
  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  *
+ * gimpdeviceeditor.h
+ * Copyright (C) 2010 Michael Natterer <mitch gimp org>
+ *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 3 of the License, or



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]