[gdm/multi-stack: 32/46] Add visibility concept to task iface



commit 0bc53aa53fb4c809b3d3ed8d0d0a7f3f846fad00
Author: Ray Strode <rstrode redhat com>
Date:   Wed Oct 28 14:10:35 2009 -0400

    Add visibility concept to task iface

 gui/simple-greeter/libgdmsimplegreeter/gdm-task.c |    6 ++++++
 gui/simple-greeter/libgdmsimplegreeter/gdm-task.h |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/libgdmsimplegreeter/gdm-task.c b/gui/simple-greeter/libgdmsimplegreeter/gdm-task.c
index 05fd75c..858b1ef 100644
--- a/gui/simple-greeter/libgdmsimplegreeter/gdm-task.c
+++ b/gui/simple-greeter/libgdmsimplegreeter/gdm-task.c
@@ -94,6 +94,12 @@ gdm_task_is_choosable (GdmTask *task)
         return GDM_TASK_GET_IFACE (task)->is_choosable (task);
 }
 
+gboolean
+gdm_task_is_visible (GdmTask *task)
+{
+        return GDM_TASK_GET_IFACE (task)->is_visible (task);
+}
+
 static void
 gdm_task_class_init (gpointer g_iface)
 {
diff --git a/gui/simple-greeter/libgdmsimplegreeter/gdm-task.h b/gui/simple-greeter/libgdmsimplegreeter/gdm-task.h
index c75bf29..51e2b0a 100644
--- a/gui/simple-greeter/libgdmsimplegreeter/gdm-task.h
+++ b/gui/simple-greeter/libgdmsimplegreeter/gdm-task.h
@@ -45,6 +45,7 @@ struct _GdmTaskIface
         char *  (* get_description) (GdmTask   *task);
         char *  (* get_name)        (GdmTask   *task);
         gboolean  (* is_choosable)    (GdmTask   *task);
+        gboolean  (* is_visible)    (GdmTask   *task);
         /* signals */
         void (* enabled) (GdmTask *task);
         void (* disabled) (GdmTask *task);
@@ -59,6 +60,7 @@ void   gdm_task_set_enabled     (GdmTask   *task,
                                  gboolean   should_enable);
 gboolean   gdm_task_is_enabled     (GdmTask   *task);
 gboolean   gdm_task_is_choosable   (GdmTask   *task);
+gboolean   gdm_task_is_visible   (GdmTask   *task);
 G_END_DECLS
 
 #endif /* __GDM_TASK_H */



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