From 43339f1c1c9d4330679a92affac71df71ef5fc40 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 27 Jan 2020 23:04:15 +0100 Subject: [PATCH] testcalendar: Don't do dumb stuff with font sizes. If you want to test font stuff, it's 2020 and we have an inspector. --- tests/testcalendar.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/tests/testcalendar.c b/tests/testcalendar.c index f810063d85..6bc4b3690a 100644 --- a/tests/testcalendar.c +++ b/tests/testcalendar.c @@ -419,9 +419,6 @@ create_calendar(void) GtkWidget *frame, *label, *bbox, *details; GtkSizeGroup *size; - GtkStyleContext *context; - PangoFontDescription *font_desc; - gchar *font; gint i; struct { @@ -487,35 +484,11 @@ create_calendar(void) rpane = gtk_box_new (GTK_ORIENTATION_VERTICAL, DEF_PAD_SMALL); gtk_paned_pack2 (GTK_PANED (hpaned), rpane, FALSE, FALSE); - /* Build the right font-button */ - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, DEF_PAD_SMALL); frame = create_frame ("Options", vbox, GTK_ALIGN_FILL, GTK_ALIGN_CENTER); gtk_container_add (GTK_CONTAINER (rpane), frame); size = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); - context = gtk_widget_get_style_context (calendar); - gtk_style_context_get (context, "font", &font_desc, NULL); - font = pango_font_description_to_string (font_desc); - button = gtk_font_button_new_with_font (font); - g_free (font); - pango_font_description_free (font_desc); - - g_signal_connect (button, "font-set", - G_CALLBACK(calendar_select_font), - &calendar_data); - - label = gtk_label_new_with_mnemonic ("_Font:"); - gtk_label_set_mnemonic_widget (GTK_LABEL (label), button); - gtk_widget_set_halign (label, GTK_ALIGN_START); - gtk_widget_set_valign (label, GTK_ALIGN_CENTER); - gtk_size_group_add_widget (size, label); - - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, DEF_PAD_SMALL); - gtk_container_add (GTK_CONTAINER (hbox), label); - gtk_container_add (GTK_CONTAINER (hbox), button); - gtk_container_add (GTK_CONTAINER (vbox), hbox); - /* Build the width entry */ button = gtk_spin_button_new_with_range (0, 127, 1);