summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-01-24 21:09:34 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-01-24 21:09:34 -0500
commit3948a485a73aa21a96eda48f426b5fd4129f462e (patch)
tree2d289f49612987bf565c32bbc403db8521f848d1
parent4caf302498a82ddeccffc4a733a7e42bbfa086f6 (diff)
downloadgtk+-3948a485a73aa21a96eda48f426b5fd4129f462e.tar.gz
Remove deprecations and warnings from tests
This removes one instance of gtk_dialog_get_action_area.
-rw-r--r--tests/testfilechooserbutton.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/tests/testfilechooserbutton.c b/tests/testfilechooserbutton.c
index e2d23c4239..31e98e5a1e 100644
--- a/tests/testfilechooserbutton.c
+++ b/tests/testfilechooserbutton.c
@@ -43,21 +43,6 @@ static GOptionEntry entries[] = {
static gchar *gtk_src_dir = NULL;
-
-static void
-win_style_set_cb (GtkWidget *win)
-{
- GtkWidget *content_area, *action_area;
-
- content_area = gtk_dialog_get_content_area (GTK_DIALOG (win));
- action_area = gtk_dialog_get_action_area (GTK_DIALOG (win));
-
- gtk_container_set_border_width (GTK_CONTAINER (content_area), 12);
- gtk_box_set_spacing (GTK_BOX (content_area), 24);
- gtk_container_set_border_width (GTK_CONTAINER (action_area), 0);
- gtk_box_set_spacing (GTK_BOX (action_area), 6);
-}
-
static gboolean
delete_event_cb (GtkWidget *editor,
gint response,
@@ -286,10 +271,10 @@ main (int argc,
win = gtk_dialog_new_with_buttons ("TestFileChooserButton", NULL, 0,
"_Quit", GTK_RESPONSE_CLOSE, NULL);
- g_signal_connect (win, "style-set", G_CALLBACK (win_style_set_cb), NULL);
g_signal_connect (win, "response", G_CALLBACK (gtk_main_quit), NULL);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 18);
+ g_object_set (vbox, "margin", 6, NULL);
gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (win))), vbox);
frame = gtk_frame_new ("<b>GtkFileChooserButton</b>");