summaryrefslogtreecommitdiff
path: root/finch
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2023-03-05 01:58:03 -0600
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2023-03-05 01:58:03 -0600
commit0d228ccaec8541bdf2609d5247af48d4556ffa3f (patch)
treed23c9ca76a8841ed4c00bbf1535281e6b4388d43 /finch
parentbef0352bc9a8636a84ec98a1c7c76a7ae99b15d5 (diff)
downloadpidgin-0d228ccaec8541bdf2609d5247af48d4556ffa3f.tar.gz
Remove get_plugin_pref_frame from gnttinyurl
Finch can't display `GSettings` yet, but the rest of this plugin is already ported to it. So this old frame code is misleading, since it is hooked up to the `PurplePrefs`, not `GSettings`. Testing Done: Compiled only Reviewed at https://reviews.imfreedom.org/r/2315/
Diffstat (limited to 'finch')
-rw-r--r--finch/plugins/gnttinyurl/gnttinyurl.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/finch/plugins/gnttinyurl/gnttinyurl.c b/finch/plugins/gnttinyurl/gnttinyurl.c
index ea7bbeb91a..be54530fb8 100644
--- a/finch/plugins/gnttinyurl/gnttinyurl.c
+++ b/finch/plugins/gnttinyurl/gnttinyurl.c
@@ -487,24 +487,6 @@ tinyurl_notify_uri(const char *uri)
return win;
}
-static PurplePluginPrefFrame *
-get_plugin_pref_frame(G_GNUC_UNUSED PurplePlugin *plugin) {
- PurplePluginPrefFrame *frame;
- PurplePluginPref *pref;
-
- frame = purple_plugin_pref_frame_new();
-
- pref = purple_plugin_pref_new_with_name(PREF_LENGTH);
- purple_plugin_pref_set_label(pref, _("Only create TinyURL for URLs"
- " of this length or greater"));
- purple_plugin_pref_frame_add(frame, pref);
- pref = purple_plugin_pref_new_with_name(PREF_URL);
- purple_plugin_pref_set_label(pref, _("TinyURL (or other) address prefix"));
- purple_plugin_pref_frame_add(frame, pref);
-
- return frame;
-}
-
static GPluginPluginInfo *
tiny_url_query(G_GNUC_UNUSED GError **error) {
const gchar * const authors[] = {
@@ -523,7 +505,7 @@ tiny_url_query(G_GNUC_UNUSED GError **error) {
"authors", authors,
"website", PURPLE_WEBSITE,
"abi-version", PURPLE_ABI_VERSION,
- "pref-frame-cb", get_plugin_pref_frame,
+ "settings-schema", PREFS_SCHEMA,
NULL
);
}