[glide] Left pane now highlights active slide
- From: Robert Carr <racarr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glide] Left pane now highlights active slide
- Date: Thu, 29 Apr 2010 10:07:21 +0000 (UTC)
commit 5f2ba40f58be5a04d6c4bfa021785581f1607511
Author: Robert Carr <racarr Valentine localdomain>
Date: Thu Apr 29 06:07:14 2010 -0400
Left pane now highlights active slide
src/glide-slide-button.c | 13 ++++++++++++-
src/glide-window.c | 2 ++
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/src/glide-slide-button.c b/src/glide-slide-button.c
index 603b1f2..86c06d0 100644
--- a/src/glide-slide-button.c
+++ b/src/glide-slide-button.c
@@ -47,10 +47,21 @@ glide_slide_button_drawing_area_expose (GtkWidget *drawing_area,
gfloat width, height;
clutter_actor_get_size (CLUTTER_ACTOR (b->priv->slide), &width, &height);
+
+ cairo_save (cr);
cairo_scale (cr, 80.0/width, 60.0/height);
glide_actor_print (GLIDE_ACTOR (b->priv->slide), cr);
-
+ cairo_restore (cr);
+
+ if (CLUTTER_ACTOR_IS_VISIBLE (b->priv->slide))
+ {
+ cairo_set_source_rgba (cr, 1, 0, 0, 1);
+ cairo_set_line_width (cr, 4);
+ cairo_rectangle (cr, 0, 0, 80, 60);
+ cairo_stroke (cr);
+ }
+
cairo_destroy (cr);
return FALSE;
diff --git a/src/glide-window.c b/src/glide-window.c
index 44dd816..0994f2b 100644
--- a/src/glide-window.c
+++ b/src/glide-window.c
@@ -264,6 +264,8 @@ glide_window_slide_changed_cb (GObject *object,
{
gtk_action_set_sensitive (GTK_ACTION (GLIDE_WINDOW_UI_OBJECT (w, "prev-slide-action")), FALSE);
}
+
+ gtk_widget_queue_draw (w->priv->slide_box);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]