summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-04-10 17:00:44 +0200
committerBenjamin Otte <otte@redhat.com>2014-04-10 17:00:44 +0200
commit6d62f84dae8d25c0f97e0b7cd2b0502cf0a0fa68 (patch)
tree76f34b69635768942e52efe50255bc4d6ee0c86d
parent949aa98a8f36a12a122c06080e13bf10177900fd (diff)
downloadgtk+-6d62f84dae8d25c0f97e0b7cd2b0502cf0a0fa68.tar.gz
tests: Make testlockbutton not use deprecated API
-rw-r--r--tests/testlockbutton.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/testlockbutton.c b/tests/testlockbutton.c
index ee606d837a..d6540d0282 100644
--- a/tests/testlockbutton.c
+++ b/tests/testlockbutton.c
@@ -215,7 +215,6 @@ main (int argc, char *argv[])
GtkWidget *dialog;
GtkWidget *button;
GtkWidget *box;
- GtkWidget *bbox;
GtkWidget *update;
GPermission *permission;
@@ -254,17 +253,13 @@ main (int argc, char *argv[])
NULL);
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
- bbox = gtk_dialog_get_action_area (GTK_DIALOG (dialog));
- gtk_container_add (GTK_CONTAINER (bbox), button);
- gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (bbox), button, TRUE);
- gtk_button_box_set_child_non_homogeneous (GTK_BUTTON_BOX (bbox), button, TRUE);
-
content = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_container_add (GTK_CONTAINER (content), gtk_check_button_new_with_label ("Control 1"));
gtk_container_add (GTK_CONTAINER (content), gtk_check_button_new_with_label ("Control 2"));
gtk_widget_set_sensitive (content, FALSE);
gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), content);
+ gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), button);
gtk_widget_show_all (window);
gtk_widget_show_all (dialog);