[gtk+] testgtk: Convert radio/check button examples from GtkTable to GtkGrid
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] testgtk: Convert radio/check button examples from GtkTable to GtkGrid
- Date: Wed, 28 Sep 2011 03:36:16 +0000 (UTC)
commit 26974640f879c7376edcf7c90e3c9ca3a5b350ad
Author: Benjamin Otte <otte redhat com>
Date: Wed Sep 28 03:25:47 2011 +0200
testgtk: Convert radio/check button examples from GtkTable to GtkGrid
tests/testgtk.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index bf6afcc..b3f9568 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -779,11 +779,11 @@ create_toggle_buttons (GtkWidget *widget)
static GtkWidget *
create_widget_grid (GType widget_type)
{
- GtkWidget *table;
+ GtkWidget *grid;
GtkWidget *group_widget = NULL;
gint i, j;
- table = gtk_table_new (FALSE, 3, 3);
+ grid = gtk_grid_new ();
for (i = 0; i < 5; i++)
{
@@ -822,14 +822,11 @@ create_widget_grid (GType widget_type)
}
if (widget)
- gtk_table_attach (GTK_TABLE (table), widget,
- i, i + 1, j, j + 1,
- 0, 0,
- 0, 0);
+ gtk_grid_attach (GTK_GRID (grid), widget, i, j, 1, 1);
}
}
- return table;
+ return grid;
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]