diff options
author | Benjamin Otte <otte.benjamin@googlemail.com> | 2018-07-20 14:03:51 +0000 |
---|---|---|
committer | Benjamin Otte <otte.benjamin@googlemail.com> | 2018-07-20 14:03:51 +0000 |
commit | 447b166ed32593acfe9a30be116c9fce5f6a5802 (patch) | |
tree | 4ddf6fc5f8c094257151bba0cd1de0b4dd9c96c9 | |
parent | 1b230324ba5e0755d8c59c589f5cab34db9f6976 (diff) | |
parent | 7a8f5ca97039911ab4b30ec1e90e68cc3bdbc0ef (diff) | |
download | gtk+-447b166ed32593acfe9a30be116c9fce5f6a5802.tar.gz |
Merge branch 'wip/muktupavels/remove-gtk-css-provider-get-default' into 'master'
gtkcssprovider: remove gtk_css_provider_get_default
See merge request GNOME/gtk!256
-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); |