[gtk+/wip/baedert/children: 38/44] test: Remove gtk_label_set_angle calls
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/children: 38/44] test: Remove gtk_label_set_angle calls
- Date: Sun, 4 Dec 2016 11:02:25 +0000 (UTC)
commit 566625396874693e1bf8fb92881f2aa635e724ab
Author: Timm Bäder <mail baedert org>
Date: Thu Dec 1 10:52:19 2016 +0100
test: Remove gtk_label_set_angle calls
demos/gtk-demo/rotated_text.c | 2 --
tests/testadjustsize.c | 3 ---
tests/testellipsise.c | 1 -
tests/testflowbox.c | 8 --------
tests/testgrid.c | 1 -
tests/testgtk.c | 10 ----------
tests/testscrolledwindow.c | 32 --------------------------------
7 files changed, 0 insertions(+), 57 deletions(-)
---
diff --git a/demos/gtk-demo/rotated_text.c b/demos/gtk-demo/rotated_text.c
index 554da8e..d2e101b 100644
--- a/demos/gtk-demo/rotated_text.c
+++ b/demos/gtk-demo/rotated_text.c
@@ -204,8 +204,6 @@ do_rotated_text (GtkWidget *do_widget)
label = gtk_label_new (text);
gtk_container_add (GTK_CONTAINER (box), label);
- gtk_label_set_angle (GTK_LABEL (label), 45);
-
/* Set up fancy stuff on the label */
layout = gtk_label_get_layout (GTK_LABEL (label));
pango_cairo_context_set_shape_renderer (pango_layout_get_context (layout),
diff --git a/tests/testadjustsize.c b/tests/testadjustsize.c
index f7f9772..5a96de2 100644
--- a/tests/testadjustsize.c
+++ b/tests/testadjustsize.c
@@ -48,9 +48,6 @@ create_label (gboolean vertical,
widget = gtk_label_new ("This is a label, label label label");
- if (vertical)
- gtk_label_set_angle (GTK_LABEL (widget), 90);
-
if (wrap)
gtk_label_set_line_wrap (GTK_LABEL (widget), TRUE);
diff --git a/tests/testellipsise.c b/tests/testellipsise.c
index 52ea06f..b56f49d 100644
--- a/tests/testellipsise.c
+++ b/tests/testellipsise.c
@@ -58,7 +58,6 @@ scale_changed_cb (GtkRange *range,
double angle = gtk_range_get_value (range);
GtkWidget *label = GTK_WIDGET (data);
- gtk_label_set_angle (GTK_LABEL (label), angle);
redraw_event_box (label);
}
diff --git a/tests/testflowbox.c b/tests/testflowbox.c
index 779ee4d..41e3cdb 100644
--- a/tests/testflowbox.c
+++ b/tests/testflowbox.c
@@ -54,8 +54,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);
@@ -150,9 +148,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);
@@ -187,9 +182,6 @@ populate_flowbox_images (GtkFlowBox *flowbox)
gtk_container_add (GTK_CONTAINER (widget), label);
gtk_widget_show_all (widget);
- 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);
diff --git a/tests/testgrid.c b/tests/testgrid.c
index 37e2d79..898ea5a 100644
--- a/tests/testgrid.c
+++ b/tests/testgrid.c
@@ -9,7 +9,6 @@ oriented_test_widget (const gchar *label, const gchar *color, gdouble angle)
gchar *data;
widget = gtk_label_new (label);
- gtk_label_set_angle (GTK_LABEL (widget), angle);
box = gtk_event_box_new ();
provider = gtk_css_provider_new ();
data = g_strdup_printf ("GtkEventBox { background-color: %s; }", color);
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 2b380d9..3d4dbfa 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -1386,13 +1386,6 @@ void create_labels (GtkWidget *widget)
}
static void
-on_angle_scale_changed (GtkRange *range,
- GtkLabel *label)
-{
- gtk_label_set_angle (GTK_LABEL (label), gtk_range_get_value (range));
-}
-
-static void
create_rotated_label (GtkWidget *widget)
{
static GtkWidget *window = NULL;
@@ -1438,9 +1431,6 @@ create_rotated_label (GtkWidget *widget)
hscale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL,
0, 360, 5);
- g_signal_connect (hscale, "value-changed",
- G_CALLBACK (on_angle_scale_changed), label);
-
gtk_range_set_value (GTK_RANGE (hscale), 45);
gtk_widget_set_size_request (hscale, 200, -1);
gtk_box_pack_start (GTK_BOX (scale_hbox), hscale, TRUE, TRUE);
diff --git a/tests/testscrolledwindow.c b/tests/testscrolledwindow.c
index cecc177..2d1ff82 100644
--- a/tests/testscrolledwindow.c
+++ b/tests/testscrolledwindow.c
@@ -20,18 +20,6 @@ vertical_policy_changed (GtkComboBox *combo_box,
}
static void
-label_flip_changed (GtkComboBox *combo_box,
- GtkLabel *label)
-{
- gint active = gtk_combo_box_get_active (combo_box);
-
- if (active == 0)
- gtk_label_set_angle (label, 0.0);
- else
- gtk_label_set_angle (label, 90.0);
-}
-
-static void
content_width_changed (GtkSpinButton *spin_button,
gpointer data)
{
@@ -215,26 +203,6 @@ scrollable_policy (void)
g_signal_connect (G_OBJECT (widget), "value-changed",
G_CALLBACK (content_height_changed), swindow);
- /* Add Label orientation control here */
- hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
- gtk_widget_show (hbox);
-
- widget = gtk_label_new ("label-flip");
- gtk_widget_show (widget);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE);
-
- 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_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE);
- gtk_box_pack_start (GTK_BOX (cntl), hbox, FALSE, FALSE);
-
- g_signal_connect (G_OBJECT (widget), "changed",
- G_CALLBACK (label_flip_changed), label);
-
/* Add Kinetic scrolling control here */
widget = gtk_check_button_new_with_label ("Kinetic scrolling");
gtk_widget_show (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]