Changeset bae7019113dcfd58bf87fb494701063db26fd375
- Timestamp:
- 05/03/09 18:47:56 (4 years ago)
- Author:
- Armin Burgmeier <armin@…>
- git-author:
- Armin Burgmeier <armin@arbur.net> / 2009-05-03T01:23:49Z+0200
- Parents:
- b89839c1ebcb9977503a7d2206eeb77312b899e4
- Children:
- 1a96a2b1429714af71c4a112b67fddf60e0ef21f
- git-committer:
- Armin Burgmeier <armin@arbur.net> / 2009-05-03T18:47:56Z+0200
- Message:
-
Added --new-instance command line option
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rfd2f104
|
rbae7019
|
|
| 1 | | [ ] Implement --new-instance |
| 2 | 1 | [ ] Support infinote://-URLs |
| 3 | 2 | [ ] configure option |
-
|
rf2f20df
|
rbae7019
|
|
| 88 | 88 | bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); |
| 89 | 89 | |
| | 90 | bool new_instance = false; |
| 90 | 91 | bool display_version = false; |
| 91 | 92 | |
| … |
… |
|
| 99 | 100 | opt_group_gobby.add_entry(opt_version, display_version); |
| 100 | 101 | |
| | 102 | Glib::OptionEntry opt_new_instance; |
| | 103 | opt_new_instance.set_short_name('n'); |
| | 104 | opt_new_instance.set_long_name("new-instance"); |
| | 105 | opt_new_instance.set_description( |
| | 106 | _("Also start a new Gobby instance when there is one " |
| | 107 | "running already")); |
| | 108 | opt_group_gobby.add_entry(opt_new_instance, new_instance); |
| | 109 | |
| 101 | 110 | Glib::OptionContext opt_ctx; |
| 102 | 111 | opt_ctx.set_help_enabled(true); |
| … |
… |
|
| 128 | 137 | } |
| 129 | 138 | |
| 130 | | bool new_instance = false; |
| 131 | | |
| 132 | | // TODO: add --new-instance option to disable unique |
| 133 | 139 | UniqueApp* app = unique_app_new("de._0x539.gobby", NULL); |
| 134 | 140 | |