[glide] Set stage manager for slide box
- From: Robert Carr <racarr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glide] Set stage manager for slide box
- Date: Thu, 29 Apr 2010 08:41:31 +0000 (UTC)
commit 01100b43c95dc7fc700ba7d582e43c46d3e0cb9a
Author: Robert Carr <racarr Valentine localdomain>
Date: Thu Apr 29 02:37:37 2010 -0400
Set stage manager for slide box
src/glide-window-private.h | 2 ++
src/glide-window.c | 11 +++++++----
2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/glide-window-private.h b/src/glide-window-private.h
index cded4e4..d8c9984 100644
--- a/src/glide-window-private.h
+++ b/src/glide-window-private.h
@@ -44,6 +44,8 @@ struct _GlideWindowPrivate
GtkRecentManager *recent_manager;
GlideUndoManager *undo_manager;
+
+ GtkWidget *slide_box;
};
G_END_DECLS
diff --git a/src/glide-window.c b/src/glide-window.c
index fbf0c9b..9bd371b 100644
--- a/src/glide-window.c
+++ b/src/glide-window.c
@@ -488,6 +488,9 @@ glide_window_set_document (GlideWindow *w, GlideDocument *d)
glide_window_enable_document_actions (w);
w->priv->document = d;
w->priv->manager = glide_stage_manager_new (w->priv->document, CLUTTER_STAGE (w->priv->stage));
+
+ glide_slide_box_set_stage_manager (GLIDE_SLIDE_BOX (w->priv->slide_box),
+ w->priv->manager);
w->priv->undo_manager = glide_undo_manager_new ();
glide_stage_manager_set_undo_manager (w->priv->manager, w->priv->undo_manager);
@@ -1471,7 +1474,7 @@ static void
glide_window_load_ui (GlideWindow *w)
{
GtkBuilder *b = gtk_builder_new ();
- GtkWidget *main_box, *slide_box;
+ GtkWidget *main_box;
gchar *ui_dir = glide_dirs_get_glide_ui_dir ();
gchar *ui_path = g_strconcat (ui_dir, "/glide-window.ui", NULL);
@@ -1491,9 +1494,9 @@ glide_window_load_ui (GlideWindow *w)
main_box = GTK_WIDGET (gtk_builder_get_object (b, "main-vbox"));
gtk_widget_reparent (main_box, GTK_WIDGET (w));
- slide_box = glide_slide_box_new ();
- gtk_container_add (GTK_CONTAINER (GLIDE_WINDOW_UI_OBJECT (w, "slide-pane-viewport")), slide_box);
- gtk_widget_show (slide_box);
+ w->priv->slide_box = glide_slide_box_new ();
+ gtk_container_add (GTK_CONTAINER (GLIDE_WINDOW_UI_OBJECT (w, "slide-pane-viewport")), w->priv->slide_box);
+ gtk_widget_show (w->priv->slide_box);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]