[gthumb/gthumb-3-2] slideshow: show the cursor again after stopping the slideshow
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb/gthumb-3-2] slideshow: show the cursor again after stopping the slideshow
- Date: Wed, 3 Jul 2013 09:45:21 +0000 (UTC)
commit 11200d29da438a996951422b88e89ecdcf550a67
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Jul 3 10:56:38 2013 +0200
slideshow: show the cursor again after stopping the slideshow
extensions/slideshow/gth-slideshow.c | 17 +++++++++++++++++
extensions/slideshow/gth-slideshow.h | 1 +
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/extensions/slideshow/gth-slideshow.c b/extensions/slideshow/gth-slideshow.c
index efb60c2..f76d043 100644
--- a/extensions/slideshow/gth-slideshow.c
+++ b/extensions/slideshow/gth-slideshow.c
@@ -100,6 +100,7 @@ _gth_slideshow_close (GthSlideshow *self)
browser = self->priv->browser;
close_browser = ! gtk_widget_get_visible (GTK_WIDGET (browser));
+ self->priv->projector->show_cursor (self);
self->priv->projector->finalize (self);
gtk_widget_destroy (GTK_WIDGET (self));
@@ -588,6 +589,13 @@ default_projector_finalize (GthSlideshow *self)
static void
+default_projector_show_cursor (GthSlideshow *self)
+{
+ gth_image_viewer_show_cursor (GTH_IMAGE_VIEWER (self->priv->viewer));
+}
+
+
+static void
default_projector_hide_cursor (GthSlideshow *self)
{
gth_image_viewer_hide_cursor (GTH_IMAGE_VIEWER (self->priv->viewer));
@@ -739,6 +747,7 @@ default_projector_construct (GthSlideshow *self)
GthProjector default_projector = {
default_projector_construct,
default_projector_paused,
+ default_projector_show_cursor,
default_projector_hide_cursor,
default_projector_finalize,
default_projector_image_ready,
@@ -983,6 +992,13 @@ clutter_projector_finalize (GthSlideshow *self)
static void
+clutter_projector_show_cursor (GthSlideshow *self)
+{
+ clutter_stage_show_cursor (CLUTTER_STAGE (self->stage));
+}
+
+
+static void
clutter_projector_hide_cursor (GthSlideshow *self)
{
clutter_stage_hide_cursor (CLUTTER_STAGE (self->stage));
@@ -1216,6 +1232,7 @@ clutter_projector_construct (GthSlideshow *self)
GthProjector clutter_projector = {
clutter_projector_construct,
clutter_projector_paused,
+ clutter_projector_show_cursor,
clutter_projector_hide_cursor,
clutter_projector_finalize,
clutter_projector_image_ready,
diff --git a/extensions/slideshow/gth-slideshow.h b/extensions/slideshow/gth-slideshow.h
index f0154d7..637405d 100644
--- a/extensions/slideshow/gth-slideshow.h
+++ b/extensions/slideshow/gth-slideshow.h
@@ -63,6 +63,7 @@ struct _GthSlideshowClass
typedef struct {
void (* construct) (GthSlideshow *self);
void (* paused) (GthSlideshow *self);
+ void (* show_cursor) (GthSlideshow *self);
void (* hide_cursor) (GthSlideshow *self);
void (* finalize) (GthSlideshow *self);
void (* image_ready) (GthSlideshow *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]