[gtk/wip/baedert/for-master: 32/33] testcalendar: Remove unused function
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 32/33] testcalendar: Remove unused function
- Date: Tue, 4 Feb 2020 11:31:38 +0000 (UTC)
commit 9f21e07924596978b2583bd86372ce3c7c59ec0c
Author: Timm Bäder <mail baedert org>
Date: Tue Feb 4 11:10:11 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 f36d53c955..d060e8ccb2 100644
--- a/tests/testcalendar.c
+++ b/tests/testcalendar.c
@@ -194,29 +194,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 GtkWidget*
create_frame (const char *caption,
GtkWidget *child,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]