[gnome-builder] credits: add gb_credits_widget_is_rolling()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] credits: add gb_credits_widget_is_rolling()
- Date: Sun, 11 Jan 2015 03:39:30 +0000 (UTC)
commit 6b44d86b0f964d130a6062135f2a43b1f3af182b
Author: Christian Hergert <christian hergert me>
Date: Sat Jan 10 19:38:08 2015 -0800
credits: add gb_credits_widget_is_rolling()
This let's you know if the credits are currently rolling. (As one would
expect).
src/credits/gb-credits-widget.c | 8 ++++++++
src/credits/gb-credits-widget.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/credits/gb-credits-widget.c b/src/credits/gb-credits-widget.c
index 1dd0581..d847f0d 100644
--- a/src/credits/gb-credits-widget.c
+++ b/src/credits/gb-credits-widget.c
@@ -51,6 +51,14 @@ gb_credits_widget_new (void)
return g_object_new (GB_TYPE_CREDITS_WIDGET, NULL);
}
+gboolean
+gb_credits_widget_is_rolling (GbCreditsWidget *widget)
+{
+ g_return_val_if_fail (GB_IS_CREDITS_WIDGET (widget), FALSE);
+
+ return !!widget->priv->animation;
+}
+
static void
stop_animation (GbCreditsWidget *widget)
{
diff --git a/src/credits/gb-credits-widget.h b/src/credits/gb-credits-widget.h
index 831723d..967cb88 100644
--- a/src/credits/gb-credits-widget.h
+++ b/src/credits/gb-credits-widget.h
@@ -52,6 +52,7 @@ GType gb_credits_widget_get_type (void);
GtkWidget *gb_credits_widget_new (void);
void gb_credits_widget_start (GbCreditsWidget *widget);
void gb_credits_widget_stop (GbCreditsWidget *widget);
+gboolean gb_credits_widget_is_rolling (GbCreditsWidget *widget);
guint gb_credits_widget_get_duration (GbCreditsWidget *widget);
void gb_credits_widget_set_duration (GbCreditsWidget *widget,
guint duration);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]