[gtk+] Remove deprecations and warnings from tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Remove deprecations and warnings from tests
- Date: Sat, 25 Jan 2014 02:10:02 +0000 (UTC)
commit 3948a485a73aa21a96eda48f426b5fd4129f462e
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 24 21:09:34 2014 -0500
Remove deprecations and warnings from tests
This removes one instance of gtk_dialog_get_action_area.
tests/testfilechooserbutton.c | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
---
diff --git a/tests/testfilechooserbutton.c b/tests/testfilechooserbutton.c
index e2d23c4..31e98e5 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>");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]