[gtk+] testgtk: Clean up code
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] testgtk: Clean up code
- Date: Wed, 28 Sep 2011 23:55:05 +0000 (UTC)
commit d4c520e0c7a66e9491b9a86e8464ccbc47e76665
Author: Benjamin Otte <otte redhat com>
Date: Wed Sep 28 19:21:58 2011 +0200
testgtk: Clean up code
Remove unused hboxes.
tests/testgtk.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 6daadf5..19c2723 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -8330,11 +8330,9 @@ create_progress_bar (GtkWidget *widget)
pdata->omenu1 = build_option_menu (items1, 4, 0,
progressbar_toggle_orientation,
pdata);
- hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_table_attach (GTK_TABLE (tab), hbox, 1, 2, 0, 1,
+ gtk_table_attach (GTK_TABLE (tab), pdata->omenu1, 1, 2, 0, 1,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,
5, 5);
- gtk_box_pack_start (GTK_BOX (hbox), pdata->omenu1, TRUE, TRUE, 0);
check = gtk_check_button_new_with_label ("Running");
g_signal_connect (check, "toggled",
@@ -8379,11 +8377,9 @@ create_progress_bar (GtkWidget *widget)
2, // PANGO_ELLIPSIZE_MIDDLE
progressbar_toggle_ellipsize,
pdata);
- hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_table_attach (GTK_TABLE (tab), hbox, 1, 2, 10, 11,
+ gtk_table_attach (GTK_TABLE (tab), pdata->elmenu, 1, 2, 10, 11,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,
5, 5);
- gtk_box_pack_start (GTK_BOX (hbox), pdata->elmenu, TRUE, TRUE, 0);
check = gtk_check_button_new_with_label ("Activity mode");
g_signal_connect (check, "clicked",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]