diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2018-07-19 19:14:26 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2018-07-19 19:25:17 +0300 |
commit | 7a8f5ca97039911ab4b30ec1e90e68cc3bdbc0ef (patch) | |
tree | 5c71331eb789b73d3f764689232779a717f71ca9 | |
parent | 4063c3dc3106cd024ecb4381af571271db372525 (diff) | |
download | gtk+-7a8f5ca97039911ab4b30ec1e90e68cc3bdbc0ef.tar.gz |
gtkcssprovider: remove gtk_css_provider_get_default
This function is unused since cdc6e8272020 commit and does not
contain fallback style.
https://gitlab.gnome.org/GNOME/gtk/issues/1226
-rw-r--r-- | docs/reference/gtk/gtk4-sections.txt | 1 | ||||
-rw-r--r-- | gtk/gtkcssprovider.c | 22 | ||||
-rw-r--r-- | gtk/gtkcssprovider.h | 3 |
3 files changed, 0 insertions, 26 deletions
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt index 51c6fb3a68..021d4cbda8 100644 --- a/docs/reference/gtk/gtk4-sections.txt +++ b/docs/reference/gtk/gtk4-sections.txt @@ -4935,7 +4935,6 @@ gtk_border_get_type <FILE>gtkcssprovider</FILE> <TITLE>GtkCssProvider</TITLE> GtkCssProvider -gtk_css_provider_get_default gtk_css_provider_get_named gtk_css_provider_load_from_data gtk_css_provider_load_from_file diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index bd7f101f4f..94b13dd053 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -1567,28 +1567,6 @@ gtk_css_provider_load_from_resource (GtkCssProvider *css_provider, g_object_unref (file); } -/** - * gtk_css_provider_get_default: - * - * Returns the provider containing the style settings used as a - * fallback for all widgets. - * - * Returns: (transfer none): The provider used for fallback styling. - * This memory is owned by GTK+, and you must not free it. - **/ -GtkCssProvider * -gtk_css_provider_get_default (void) -{ - static GtkCssProvider *provider; - - if (G_UNLIKELY (!provider)) - { - provider = gtk_css_provider_new (); - } - - return provider; -} - gchar * _gtk_get_theme_dir (void) { diff --git a/gtk/gtkcssprovider.h b/gtk/gtkcssprovider.h index af6377c33e..4d5550373d 100644 --- a/gtk/gtkcssprovider.h +++ b/gtk/gtkcssprovider.h @@ -109,9 +109,6 @@ void gtk_css_provider_load_from_resource (GtkCssProvider *css_provid const gchar *resource_path); GDK_AVAILABLE_IN_ALL -GtkCssProvider * gtk_css_provider_get_default (void); - -GDK_AVAILABLE_IN_ALL GtkCssProvider * gtk_css_provider_get_named (const gchar *name, const gchar *variant); |