[geary/gnumdk/stable] client: Remove deprecated hidden option
- From: Cédric Bellegarde <cbellegarde src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/gnumdk/stable] client: Remove deprecated hidden option
- Date: Tue, 23 Aug 2022 14:11:15 +0000 (UTC)
commit 989e996823efbb5f6fba952b16e56e3719da5555
Author: Cédric Bellegarde <cedric.bellegarde@ædishatz.org>
Date: Tue Aug 23 16:06:24 2022 +0200
client: Remove deprecated hidden option
src/client/application/application-client.vala | 31 --------------------------
1 file changed, 31 deletions(-)
---
diff --git a/src/client/application/application-client.vala b/src/client/application/application-client.vala
index da9377a21..6f9d857ae 100644
--- a/src/client/application/application-client.vala
+++ b/src/client/application/application-client.vala
@@ -75,7 +75,6 @@ public class Application.Client : Gtk.Application {
private const string OPTION_LOG_REPLAY_QUEUE = "log-replay-queue";
private const string OPTION_LOG_SMTP = "log-smtp";
private const string OPTION_LOG_SQL = "log-sql";
- private const string OPTION_HIDDEN = "hidden";
private const string OPTION_NEW_WINDOW = "new-window";
private const string OPTION_QUIT = "quit";
private const string OPTION_REVOKE_CERTS = "revoke-certs";
@@ -100,9 +99,6 @@ public class Application.Client : Gtk.Application {
{ OPTION_DEBUG, 'd', 0, GLib.OptionArg.NONE, null,
/// Command line option
N_("Print debug logging"), null },
- { OPTION_HIDDEN, 0, 0, GLib.OptionArg.NONE, null,
- /// Command line option
- N_("Start with the main window hidden (deprecated)"), null },
{ OPTION_INSPECTOR, 'i', 0, GLib.OptionArg.NONE, null,
/// Command line option
N_("Enable WebKitGTK Inspector in web views"), null },
@@ -250,7 +246,6 @@ public class Application.Client : Gtk.Application {
private File exec_dir;
private string binary;
- private bool start_hidden = false;
private Gtk.CssProvider single_key_shortcuts = new Gtk.CssProvider();
private GLib.Cancellable controller_cancellable = new GLib.Cancellable();
private Components.Inspector? inspector = null;
@@ -1091,20 +1086,6 @@ public class Application.Client : Gtk.Application {
Geary.Db.Context.enable_sql_logging = true;
}
- if (options.contains(OPTION_HIDDEN)) {
- warning(
- /// Warning printed to the console when a deprecated
- /// command line option is used.
- _("The `--hidden` option is deprecated and will be removed in the future.")
- );
- this.start_hidden = true;
- // Update the autostart file so that it stops using the
- // --hidden option.
- this.update_autostart_file.begin();
- // Then manually start the controller
- this.create_controller.begin();
- activated = true;
- }
if (options.contains(OPTION_NEW_WINDOW)) {
activate_action(Action.Application.NEW_WINDOW, null);
activated = true;
@@ -1147,18 +1128,6 @@ public class Application.Client : Gtk.Application {
return -1;
}
- /** Removes and re-adds the autostart file if needed. */
- private async void update_autostart_file() {
- try {
- this.autostart.delete_startup_file();
- if (this.config.run_in_background) {
- this.autostart.install_startup_file();
- }
- } catch (GLib.Error err) {
- warning("Could not update autostart file");
- }
- }
-
private void add_app_accelerators(string action,
string[] accelerators,
GLib.Variant? param = null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]