[gtk+] testgtk: Fix deprecation
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] testgtk: Fix deprecation
- Date: Thu, 9 Jun 2011 04:25:28 +0000 (UTC)
commit 6114b06b3b3f5e11f5a6e03f93c3929ebf9d79b6
Author: Benjamin Otte <otte redhat com>
Date: Thu Jun 9 06:20:42 2011 +0200
testgtk: Fix deprecation
tests/testgtk.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index e686485..005d575 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -5046,10 +5046,7 @@ create_cursors (GtkWidget *widget)
NULL);
g_object_set_data (G_OBJECT (spinner), "user_data", label);
- any =
- g_object_new (gtk_hseparator_get_type (),
- "GtkWidget::visible", TRUE,
- NULL);
+ any = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_box_pack_start (GTK_BOX (main_vbox), any, FALSE, TRUE, 0);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]