summaryrefslogtreecommitdiff
path: root/tests/testflowbox.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-04-25 17:26:49 +0200
committerTimm Bäder <mail@baedert.org>2017-04-25 20:30:37 +0200
commitdb4b1d28f53c30e8d4d555775cece1cc8aefdcf3 (patch)
treed622cbd4f91816ae5997144fe7847c7cae07928d /tests/testflowbox.c
parentcb80b32ee8c1c9ab6b6c483d75221e2cd63cab43 (diff)
downloadgtk+-db4b1d28f53c30e8d4d555775cece1cc8aefdcf3.tar.gz
label: Remove angle property
Diffstat (limited to 'tests/testflowbox.c')
-rw-r--r--tests/testflowbox.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/testflowbox.c b/tests/testflowbox.c
index cea9989d46..7ce5d226f5 100644
--- a/tests/testflowbox.c
+++ b/tests/testflowbox.c
@@ -35,7 +35,6 @@ enum {
static GtkFlowBox *the_flowbox = NULL;
static gint items_type = SIMPLE_ITEMS;
-static GtkOrientation text_orientation = GTK_ORIENTATION_HORIZONTAL;
static void
populate_flowbox_simple (GtkFlowBox *flowbox)
@@ -54,8 +53,6 @@ populate_flowbox_simple (GtkFlowBox *flowbox)
gtk_container_add (GTK_CONTAINER (frame), widget);
- if (text_orientation == GTK_ORIENTATION_VERTICAL)
- gtk_label_set_angle (GTK_LABEL (widget), 90);
g_object_set_data_full (G_OBJECT (frame), "id", (gpointer)g_strdup (text), g_free);
gtk_container_add (GTK_CONTAINER (flowbox), frame);
@@ -148,9 +145,6 @@ populate_flowbox_wrappy (GtkFlowBox *flowbox)
gtk_widget_show (widget);
gtk_widget_show (frame);
- if (text_orientation == GTK_ORIENTATION_VERTICAL)
- gtk_label_set_angle (GTK_LABEL (widget), 90);
-
gtk_container_add (GTK_CONTAINER (frame), widget);
gtk_label_set_line_wrap (GTK_LABEL (widget), TRUE);
@@ -184,9 +178,6 @@ populate_flowbox_images (GtkFlowBox *flowbox)
gtk_container_add (GTK_CONTAINER (widget), image);
gtk_container_add (GTK_CONTAINER (widget), label);
- if (text_orientation == GTK_ORIENTATION_VERTICAL)
- gtk_label_set_angle (GTK_LABEL (widget), 90);
-
g_object_set_data_full (G_OBJECT (widget), "id", (gpointer)g_strdup (text), g_free);
gtk_container_add (GTK_CONTAINER (flowbox), widget);
@@ -298,15 +289,6 @@ items_changed (GtkComboBox *box,
}
static void
-text_orientation_changed (GtkComboBox *box,
- GtkFlowBox *flowbox)
-{
- text_orientation = gtk_combo_box_get_active (box);
-
- populate_items (flowbox);
-}
-
-static void
homogeneous_toggled (GtkToggleButton *button,
GtkFlowBox *flowbox)
{
@@ -634,20 +616,6 @@ create_window (void)
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (items_changed), flowbox);
-
- /* Add Text Orientation control */
- widget = gtk_combo_box_text_new ();
- gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Horizontal");
- gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Vertical");
- gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0);
- gtk_widget_show (widget);
-
- gtk_widget_set_tooltip_text (widget, "Set the item's text orientation");
- gtk_box_pack_start (GTK_BOX (items_cntl), widget);
-
- g_signal_connect (G_OBJECT (widget), "changed",
- G_CALLBACK (text_orientation_changed), flowbox);
-
populate_items (GTK_FLOW_BOX (flowbox));
/* This line was added only for the convenience of reproducing