[gtk/wip/otte/css: 4/17] testcalendar: Remove unused function
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/css: 4/17] testcalendar: Remove unused function
- Date: Mon, 10 Feb 2020 03:01:47 +0000 (UTC)
commit d0a66bf94191e333b7b57592b47f526ad4823ef9
Author: Benjamin Otte <otte redhat com>
Date: Sat Feb 8 03:31:45 2020 +0100
testcalendar: Remove unused function
tests/testcalendar.c | 23 -----------------------
1 file changed, 23 deletions(-)
---
diff --git a/tests/testcalendar.c b/tests/testcalendar.c
index 6bc4b3690a..d6eef5b0cf 100644
--- a/tests/testcalendar.c
+++ b/tests/testcalendar.c
@@ -244,29 +244,6 @@ calendar_toggle_flag (GtkWidget *toggle,
}
-void calendar_select_font (GtkWidget *button,
- CalendarData *calendar)
-{
- const char *font = NULL;
- GtkCssProvider *provider;
- gchar *data;
-
- if (calendar->window)
- {
- provider = g_object_get_data (G_OBJECT (calendar->window), "css-provider");
- if (!provider)
- {
- provider = gtk_css_provider_new ();
- gtk_style_context_add_provider (gtk_widget_get_style_context (calendar->window),
GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
- g_object_set_data_full (G_OBJECT (calendar->window), "css-provider", provider, g_object_unref);
- }
- font = gtk_font_chooser_get_font (GTK_FONT_CHOOSER (button));
- data = g_strdup_printf ("GtkCalendar { font: %s; }", font);
- gtk_css_provider_load_from_data (provider, data, -1);
- g_free (data);
- }
-}
-
static gchar*
calendar_detail_cb (GtkCalendar *calendar,
guint year,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]