Changeset bae7019113dcfd58bf87fb494701063db26fd375

Show
Ignore:
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:
2 modified

Legend:

Unmodified
Added
Removed
  • UNIQUE_TODO

    rfd2f104 rbae7019  
    1 [ ] Implement --new-instance 
    21[ ] Support infinote://-URLs 
    32[ ] configure option 
  • code/main.cpp

    rf2f20df rbae7019  
    8888        bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); 
    8989 
     90        bool new_instance = false; 
    9091        bool display_version = false; 
    9192 
     
    99100        opt_group_gobby.add_entry(opt_version, display_version); 
    100101 
     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 
    101110        Glib::OptionContext opt_ctx; 
    102111        opt_ctx.set_help_enabled(true); 
     
    128137        } 
    129138 
    130         bool new_instance = false; 
    131  
    132         // TODO: add --new-instance option to disable unique 
    133139        UniqueApp* app = unique_app_new("de._0x539.gobby", NULL); 
    134140