[gedit] Fix overlay tests
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix overlay tests
- Date: Mon, 13 Jun 2011 13:25:28 +0000 (UTC)
commit c3a1bafc5a22a99be7d81f7df24e328a573e6f4d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Jun 13 15:27:57 2011 +0200
Fix overlay tests
tests/test-overlay.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/tests/test-overlay.c b/tests/test-overlay.c
index caa4c49..a094872 100644
--- a/tests/test-overlay.c
+++ b/tests/test-overlay.c
@@ -34,7 +34,8 @@ main ()
gtk_container_add (GTK_CONTAINER (window), vbox);
textview = gtk_text_view_new ();
- overlay = gedit_animated_overlay_new (textview, NULL);
+ overlay = gedit_animated_overlay_new ();
+ gtk_container_add (GTK_CONTAINER (overlay), textview);
gtk_box_pack_start (GTK_BOX (vbox), overlay, TRUE, TRUE, 0);
@@ -45,7 +46,10 @@ main ()
gtk_container_add (GTK_CONTAINER (frame), entry);
- slider = gedit_floating_slider_new (frame);
+ slider = gedit_floating_slider_new ();
+ gtk_container_add (GTK_CONTAINER (slider), frame);
+ gtk_widget_set_halign (slider, GTK_ALIGN_START);
+ gtk_widget_set_valign (slider, GTK_ALIGN_START);
g_object_set (G_OBJECT (slider),
"duration", 1000,
@@ -54,8 +58,8 @@ main ()
"orientation", GTK_ORIENTATION_VERTICAL,
NULL);
- gedit_animated_overlay_add (GEDIT_ANIMATED_OVERLAY (overlay),
- GEDIT_ANIMATABLE (slider));
+ gedit_animated_overlay_add_animated_overlay (GEDIT_ANIMATED_OVERLAY (overlay),
+ GEDIT_ANIMATABLE (slider));
/* set the animation state after it is added the widget */
g_object_set (G_OBJECT (slider),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]