pidgin/pidgin

Remove custom entry CSS from account editor

18 months ago, Elliott Sales de Andrade
ab75bc798d3a
Parents 6182863475ee
Children 7509b313b098
Remove custom entry CSS from account editor

This has no effect on the AdwEntryRow, *and* it already provides the semantics
that were emulated by this CSS.

Testing Done:
Opened account editor while account was connected and saw that entries could not be edited, but could be selected.

Reviewed at https://reviews.imfreedom.org/r/2076/
--- a/pidgin/pidginaccounteditor.c Fri Nov 18 01:33:50 2022 -0600
+++ b/pidgin/pidginaccounteditor.c Sat Nov 19 02:37:37 2022 -0600
@@ -1137,23 +1137,10 @@
static void
pidgin_account_editor_init(PidginAccountEditor *editor) {
- GtkCssProvider *css_provider = NULL;
- GtkStyleContext *context = NULL;
GtkWidget *widget = GTK_WIDGET(editor);
gtk_widget_init_template(widget);
- css_provider = gtk_css_provider_new();
- gtk_css_provider_load_from_resource(css_provider,
- "/im/pidgin/Pidgin3/Accounts/entry.css");
-
- context = gtk_widget_get_style_context(GTK_WIDGET(editor));
- gtk_style_context_add_provider(context,
- GTK_STYLE_PROVIDER(css_provider),
- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
-
- g_clear_object(&css_provider);
-
pidgin_account_editor_proxy_type_changed_cb(NULL, NULL, editor);
}
--- a/pidgin/resources/Accounts/entry.css Fri Nov 18 01:33:50 2022 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-entry.copyable-insensitive {
- color: @insensitive_fg_color;
- background-color: @insensitive_bg_color;
-}
--- a/pidgin/resources/pidgin.gresource.xml Fri Nov 18 01:33:50 2022 -0600
+++ b/pidgin/resources/pidgin.gresource.xml Sat Nov 19 02:37:37 2022 -0600
@@ -6,7 +6,6 @@
<file compressed="true" preprocess="json-stripblanks">About/credits.json</file>
<file compressed="true" preprocess="xml-stripblanks">Accounts/chooser.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Accounts/editor.ui</file>
- <file compressed="true">Accounts/entry.css</file>
<file compressed="true" preprocess="xml-stripblanks">Accounts/manager.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Avatar/avatar.ui</file>
<file compressed="true" preprocess="xml-stripblanks">Avatar/menu.ui</file>