summaryrefslogtreecommitdiff
path: root/tests/testbaseline.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-08-01 23:49:42 +0100
committerBenjamin Otte <otte@redhat.com>2017-08-02 00:15:10 +0100
commit69da7836f951d0a0324cf0f4f855972260238524 (patch)
tree2bac64d7847e9db20447aa0e618ce6040282c505 /tests/testbaseline.c
parent2b7db2376c54aa2c799c5bcb764fd888562c2dd3 (diff)
downloadgtk+-69da7836f951d0a0324cf0f4f855972260238524.tar.gz
tests: Get rid of GtkEventBox
Diffstat (limited to 'tests/testbaseline.c')
-rw-r--r--tests/testbaseline.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/testbaseline.c b/tests/testbaseline.c
index 9dd5358fc8..62a663f370 100644
--- a/tests/testbaseline.c
+++ b/tests/testbaseline.c
@@ -71,7 +71,7 @@ main (int argc,
char **argv)
{
GtkWidget *window, *label, *entry, *button, *grid, *notebook;
- GtkWidget *vbox, *hbox, *grid_hbox, *spin, *spin2, *toggle, *combo, *image, *ebox;
+ GtkWidget *vbox, *hbox, *grid_hbox, *spin, *spin2, *toggle, *combo, *image;
GtkAdjustment *adjustment;
int i, j;
GtkCssProvider *provider;
@@ -193,16 +193,11 @@ main (int argc,
gtk_container_add (GTK_CONTAINER (hbox), button);
}
- ebox = gtk_event_box_new ();
- if (j == 0)
- gtk_widget_set_valign (ebox, GTK_ALIGN_BASELINE);
- gtk_container_add (GTK_CONTAINER (hbox), ebox);
-
image = gtk_image_new_from_icon_name ("face-sad", GTK_ICON_SIZE_BUTTON);
gtk_image_set_pixel_size (GTK_IMAGE (image), 34);
if (j == 0)
gtk_widget_set_valign (image, GTK_ALIGN_BASELINE);
- gtk_container_add (GTK_CONTAINER (ebox), image);
+ gtk_container_add (GTK_CONTAINER (hbox), image);
button = gtk_toggle_button_new_with_label ("│Xyj,Ö");
if (j == 0)