[glide] Use GTK_STOCK_MEDIA_NEXT for animation notebook page



commit a52c386a10f052a4f110a809c7f252216eaf4490
Author: Robert Carr <racarr Valentine localdomain>
Date:   Sat May 1 21:47:18 2010 -0400

    Use GTK_STOCK_MEDIA_NEXT for animation notebook page

 src/glide-inspector-animation.c |    5 ++++-
 src/glide-inspector-notebook.c  |    4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/glide-inspector-animation.c b/src/glide-inspector-animation.c
index 68c47c3..a5efaff 100644
--- a/src/glide-inspector-animation.c
+++ b/src/glide-inspector-animation.c
@@ -313,14 +313,17 @@ glide_inspector_animation_make_duration (GlideInspectorAnimation *ins)
 {
   GtkWidget *ret = gtk_hbox_new (FALSE, 10);
   GtkWidget *duration_label = gtk_label_new (NULL);
+  GtkWidget *al = gtk_alignment_new (1, 0, 1.0, 1);
   ins->priv->duration_spin = gtk_spin_button_new_with_range (0, 10, 0.1);
   
   gtk_spin_button_set_value (GTK_SPIN_BUTTON (ins->priv->duration_spin), 1.0);
   
   gtk_label_set_markup (GTK_LABEL (duration_label), "<b>Duration:</b>");
   
+  gtk_container_add (GTK_CONTAINER (al), ins->priv->duration_spin);
+
   gtk_box_pack_start (GTK_BOX (ret), duration_label, FALSE, FALSE, 0);
-  gtk_box_pack_start (GTK_BOX (ret), ins->priv->duration_spin, FALSE, FALSE, 0);
+  gtk_box_pack_start (GTK_BOX (ret), al, TRUE, TRUE, 0);
   
   g_signal_connect (ins->priv->duration_spin, "value-changed",
 		    G_CALLBACK (glide_inspector_animation_duration_spin_changed), 
diff --git a/src/glide-inspector-notebook.c b/src/glide-inspector-notebook.c
index ad8b6b0..149da85 100644
--- a/src/glide-inspector-notebook.c
+++ b/src/glide-inspector-notebook.c
@@ -91,10 +91,10 @@ static void
 glide_inspector_notebook_add_pages (GlideInspectorNotebook *inspector)
 {
   GtkNotebook *notebook = GTK_NOTEBOOK (inspector);
-  GtkWidget *label = gtk_label_new ("Animation");
+  GtkWidget *animation_image = gtk_image_new_from_stock (GTK_STOCK_MEDIA_NEXT, GTK_ICON_SIZE_MENU);
 
   inspector->priv->inspector_animation= glide_inspector_animation_new ();
-  gtk_notebook_append_page (notebook, inspector->priv->inspector_animation, label);
+  gtk_notebook_append_page (notebook, inspector->priv->inspector_animation, animation_image);
 }
 
 static void



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