[glide] Slide previews now repaint based on undo-manager
- From: Robert Carr <racarr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glide] Slide previews now repaint based on undo-manager
- Date: Thu, 29 Apr 2010 08:42:11 +0000 (UTC)
commit cf53ea324d4d2ecd638420165c67b0fa11e35075
Author: Robert Carr <racarr Valentine localdomain>
Date: Thu Apr 29 04:41:12 2010 -0400
Slide previews now repaint based on undo-manager
data/ui/glide-window.ui | 2 +-
src/glide-slide-button.c | 13 ++++++++-----
2 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/data/ui/glide-window.ui b/data/ui/glide-window.ui
index 08eef93..933956f 100644
--- a/data/ui/glide-window.ui
+++ b/data/ui/glide-window.ui
@@ -509,7 +509,7 @@
<property name="visible">True</property>
<child>
<object class="GtkScrolledWindow" id="slide-pane-scrolled">
- <property name="width_request">100</property>
+ <property name="width_request">95</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">automatic</property>
diff --git a/src/glide-slide-button.c b/src/glide-slide-button.c
index e2c3071..0a9957d 100644
--- a/src/glide-slide-button.c
+++ b/src/glide-slide-button.c
@@ -29,12 +29,12 @@ enum {
};
static void
-glide_slide_button_slide_painted (ClutterActor *slide,
- gpointer user_data)
+glide_slide_button_undo_position_changed (GlideUndoManager *manager,
+ gpointer user_data)
{
- GlideSlideButton *button = (GlideSlideButton *)user_data;
+ GlideSlideButton *b = (GlideSlideButton *)user_data;
- gtk_widget_queue_draw (GTK_WIDGET (button));
+ gtk_widget_queue_draw (GTK_WIDGET (b));
}
static gboolean
@@ -163,8 +163,11 @@ void
glide_slide_button_set_slide (GlideSlideButton *button,
GlideSlide *slide)
{
+ GlideUndoManager *manager =
+ glide_stage_manager_get_undo_manager (glide_actor_get_stage_manager (GLIDE_ACTOR (slide)));
button->priv->slide = slide;
g_object_notify (G_OBJECT (button), "slide");
- g_signal_connect (slide, "paint", G_CALLBACK (glide_slide_button_slide_painted), button);
+ g_signal_connect (manager, "position-changed",
+ G_CALLBACK (glide_slide_button_undo_position_changed), button);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]