[totem] main: Add helper to pause thumbnailing in grilo widget



commit b3785e01e7414111feec1dd245f360d2d9500ca4
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Nov 25 17:24:06 2014 +0100

    main: Add helper to pause thumbnailing in grilo widget

 src/totem-grilo.c |    8 ++++++++
 src/totem-grilo.h |    1 +
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index b5d3570..27e8785 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -2477,6 +2477,8 @@ totem_grilo_finalize (GObject *object)
 void
 totem_grilo_start (TotemGrilo *self)
 {
+       totem_grilo_resume_icon_thumbnailing ();
+
        if (self->priv->plugins_loaded)
                return;
 
@@ -2486,6 +2488,12 @@ totem_grilo_start (TotemGrilo *self)
        self->priv->plugins_loaded = TRUE;
 }
 
+void
+totem_grilo_pause (TotemGrilo *self)
+{
+       totem_grilo_pause_icon_thumbnailing ();
+}
+
 static void
 totem_grilo_constructed (GObject *object)
 {
diff --git a/src/totem-grilo.h b/src/totem-grilo.h
index 693511b..277783b 100644
--- a/src/totem-grilo.h
+++ b/src/totem-grilo.h
@@ -66,6 +66,7 @@ GType           totem_grilo_get_type              (void) G_GNUC_CONST;
 GtkWidget*      totem_grilo_new                   (TotemObject *totem,
                                                    GtkWidget   *header);
 void            totem_grilo_start                 (TotemGrilo  *self);
+void            totem_grilo_pause                 (TotemGrilo  *self);
 void            totem_grilo_back_button_clicked   (TotemGrilo  *self);
 gboolean        totem_grilo_get_show_back_button  (TotemGrilo  *self);
 void            totem_grilo_set_current_page      (TotemGrilo     *self,


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