diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-02-21 00:58:30 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-02-21 12:22:50 -0500 |
commit | 96fa1fb5c1e92b969d2d2861a40ef0757d77af93 (patch) | |
tree | 31e650c5c02897623d6177d2e6ff1895d0f256e3 /gtk/gtksettings.c | |
parent | a3ae12c0b7761c003790ae338ede3889094fb7b1 (diff) | |
download | gtk+-96fa1fb5c1e92b969d2d2861a40ef0757d77af93.tar.gz |
Drop key themes
These were an abuse of css, and not very successful
as a concept. We are going to replace bindings with
a new way of doing customizable shortcuts.
Diffstat (limited to 'gtk/gtksettings.c')
-rw-r--r-- | gtk/gtksettings.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c index 9c9988e22d..0b70835bbf 100644 --- a/gtk/gtksettings.c +++ b/gtk/gtksettings.c @@ -120,7 +120,6 @@ struct _GtkSettingsPrivate GdkDisplay *display; GSList *style_cascades; GtkCssProvider *theme_provider; - GtkCssProvider *key_theme_provider; gint font_size; gboolean font_size_absolute; gchar *font_family; @@ -149,7 +148,6 @@ enum { PROP_SPLIT_CURSOR, PROP_THEME_NAME, PROP_ICON_THEME_NAME, - PROP_KEY_THEME_NAME, PROP_DND_DRAG_THRESHOLD, PROP_FONT_NAME, PROP_XFT_ANTIALIAS, @@ -215,7 +213,6 @@ static void settings_update_font_options (GtkSettings *setting static void settings_update_font_values (GtkSettings *settings); static gboolean settings_update_fontconfig (GtkSettings *settings); static void settings_update_theme (GtkSettings *settings); -static void settings_update_key_theme (GtkSettings *settings); static gboolean settings_update_xsetting (GtkSettings *settings, GParamSpec *pspec, gboolean force); @@ -420,15 +417,6 @@ gtk_settings_class_init (GtkSettingsClass *class) g_assert (result == PROP_ICON_THEME_NAME); result = settings_install_property_parser (class, - g_param_spec_string ("gtk-key-theme-name", - P_("Key Theme Name"), - P_("Name of key theme to load"), - NULL, - GTK_PARAM_READWRITE), - NULL); - g_assert (result == PROP_KEY_THEME_NAME); - - result = settings_install_property_parser (class, g_param_spec_int ("gtk-dnd-drag-threshold", P_("Drag threshold"), P_("Number of pixels the cursor can move before dragging"), @@ -1040,7 +1028,6 @@ gtk_settings_finalize (GObject *object) g_datalist_clear (&priv->queued_settings); settings_update_provider (priv->display, &priv->theme_provider, NULL); - settings_update_provider (priv->display, &priv->key_theme_provider, NULL); g_slist_free_full (priv->style_cascades, g_object_unref); if (priv->font_options) @@ -1119,7 +1106,6 @@ settings_init_style (GtkSettings *settings) GTK_STYLE_PROVIDER_PRIORITY_SETTINGS); settings_update_theme (settings); - settings_update_key_theme (settings); } static void @@ -1300,9 +1286,6 @@ gtk_settings_notify (GObject *object, settings_invalidate_style (settings); gtk_style_context_reset_widgets (priv->display); break; - case PROP_KEY_THEME_NAME: - settings_update_key_theme (settings); - break; case PROP_THEME_NAME: case PROP_APPLICATION_PREFER_DARK_THEME: settings_update_theme (settings); @@ -2248,24 +2231,6 @@ settings_update_theme (GtkSettings *settings) g_free (theme_variant); } -static void -settings_update_key_theme (GtkSettings *settings) -{ - GtkSettingsPrivate *priv = settings->priv; - GtkCssProvider *provider = NULL; - gchar *key_theme_name; - - g_object_get (settings, - "gtk-key-theme-name", &key_theme_name, - NULL); - - if (key_theme_name && *key_theme_name) - provider = gtk_css_provider_get_named (key_theme_name, "keys"); - - settings_update_provider (priv->display, &priv->key_theme_provider, provider); - g_free (key_theme_name); -} - const cairo_font_options_t * gtk_settings_get_font_options (GtkSettings *settings) { |