From 0d228ccaec8541bdf2609d5247af48d4556ffa3f Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sun, 5 Mar 2023 01:58:03 -0600 Subject: 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/ --- finch/plugins/gnttinyurl/gnttinyurl.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'finch') 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 ); } -- cgit v1.2.1