[gdm/multi-stack: 2/20] Add new api to ask when chooser widget is done loading items
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/multi-stack: 2/20] Add new api to ask when chooser widget is done loading items
- Date: Tue, 8 Mar 2011 22:27:04 +0000 (UTC)
commit 9c4009493d4c55c56a573519d87d237033dd4db8
Author: Ray Strode <rstrode redhat com>
Date: Fri Feb 20 14:05:20 2009 -0500
Add new api to ask when chooser widget is done loading items
gui/simple-greeter/gdm-chooser-widget.c | 8 ++++++++
gui/simple-greeter/gdm-chooser-widget.h | 2 ++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-chooser-widget.c b/gui/simple-greeter/gdm-chooser-widget.c
index e81bd77..99fefa0 100644
--- a/gui/simple-greeter/gdm-chooser-widget.c
+++ b/gui/simple-greeter/gdm-chooser-widget.c
@@ -99,6 +99,7 @@ struct GdmChooserWidgetPrivate
guint32 should_hide_inactive_items : 1;
guint32 emit_activated_after_resize_animation : 1;
+ guint32 is_loaded : 1;
GdmChooserWidgetPosition separator_position;
GdmChooserWidgetState state;
@@ -2839,9 +2840,16 @@ gdm_chooser_widget_propagate_pending_key_events (GdmChooserWidget *widget)
gdm_scrollable_widget_replay_queued_key_events (GDM_SCROLLABLE_WIDGET (widget->priv->scrollable_widget));
}
+gboolean
+gdm_chooser_widget_is_loaded (GdmChooserWidget *widget)
+{
+ return widget->priv->is_loaded;
+}
+
void
gdm_chooser_widget_loaded (GdmChooserWidget *widget)
{
+ widget->priv->is_loaded = TRUE;
g_signal_emit (widget, signals[LOADED], 0);
update_chooser_visibility (widget);
queue_move_cursor_to_top (widget);
diff --git a/gui/simple-greeter/gdm-chooser-widget.h b/gui/simple-greeter/gdm-chooser-widget.h
index 11a6456..3f6fea3 100644
--- a/gui/simple-greeter/gdm-chooser-widget.h
+++ b/gui/simple-greeter/gdm-chooser-widget.h
@@ -142,6 +142,8 @@ int gdm_chooser_widget_get_number_of_items (GdmChooserWidget
void gdm_chooser_widget_activate_if_one_item (GdmChooserWidget *widget);
void gdm_chooser_widget_propagate_pending_key_events (GdmChooserWidget *widget);
+gboolean gdm_chooser_widget_is_loaded (GdmChooserWidget *widget);
+
/* Protected
*/
void gdm_chooser_widget_loaded (GdmChooserWidget *widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]