summaryrefslogtreecommitdiff
path: root/tests/testassistant.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-05-06 16:08:09 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2011-05-06 16:08:42 -0400
commit297e7393953264b4c7c67562146a7b89dbaf43b2 (patch)
treeebf15dde555f408c9f4263a1ef6fc9ad03feec3d /tests/testassistant.c
parent579afaa9a1473ed561f4552242f1eff57b4a2250 (diff)
downloadgtk+-297e7393953264b4c7c67562146a7b89dbaf43b2.tar.gz
testassistant: don't use deprecated functions
Diffstat (limited to 'tests/testassistant.c')
-rw-r--r--tests/testassistant.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/tests/testassistant.c b/tests/testassistant.c
index b63525efde..bb23720a64 100644
--- a/tests/testassistant.c
+++ b/tests/testassistant.c
@@ -540,16 +540,15 @@ create_full_featured_assistant (GtkWidget *widget)
if (!assistant)
{
GtkWidget *page, *button;
- GdkPixbuf *pixbuf;
assistant = gtk_assistant_new ();
gtk_window_set_default_size (GTK_WINDOW (assistant), 400, 300);
- button = gtk_button_new_from_stock (GTK_STOCK_STOP);
- gtk_widget_show (button);
- gtk_assistant_add_action_widget (GTK_ASSISTANT (assistant), button);
- g_signal_connect (button, "clicked",
- G_CALLBACK (toggle_invisible), assistant);
+ button = gtk_button_new_from_stock (GTK_STOCK_STOP);
+ gtk_widget_show (button);
+ gtk_assistant_add_action_widget (GTK_ASSISTANT (assistant), button);
+ g_signal_connect (button, "clicked",
+ G_CALLBACK (toggle_invisible), assistant);
g_signal_connect (G_OBJECT (assistant), "cancel",
G_CALLBACK (cancel_callback), NULL);
@@ -566,14 +565,6 @@ create_full_featured_assistant (GtkWidget *widget)
gtk_assistant_set_page_title (GTK_ASSISTANT (assistant), page, "Page 1");
gtk_assistant_set_page_complete (GTK_ASSISTANT (assistant), page, TRUE);
- /* set a side image */
- pixbuf = gtk_widget_render_icon_pixbuf (page, GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_DIALOG);
- gtk_assistant_set_page_side_image (GTK_ASSISTANT (assistant), page, pixbuf);
-
- /* set a header image */
- pixbuf = gtk_widget_render_icon_pixbuf (page, GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_DIALOG);
- gtk_assistant_set_page_header_image (GTK_ASSISTANT (assistant), page, pixbuf);
-
page = get_test_page ("Invisible page");
gtk_assistant_append_page (GTK_ASSISTANT (assistant), page);
gtk_assistant_set_page_title (GTK_ASSISTANT (assistant), page, "Page 2");
@@ -585,10 +576,6 @@ create_full_featured_assistant (GtkWidget *widget)
gtk_assistant_set_page_title (GTK_ASSISTANT (assistant), page, "Page 3");
gtk_assistant_set_page_type (GTK_ASSISTANT (assistant), page, GTK_ASSISTANT_PAGE_CONFIRM);
gtk_assistant_set_page_complete (GTK_ASSISTANT (assistant), page, TRUE);
-
- /* set a header image */
- pixbuf = gtk_widget_render_icon_pixbuf (page, GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_DIALOG);
- gtk_assistant_set_page_header_image (GTK_ASSISTANT (assistant), page, pixbuf);
}
if (!gtk_widget_get_visible (assistant))