~ubuntu-branches/ubuntu/precise/gnome-do/precise-backports

« back to all changes in this revision

Viewing changes to Do/src/Do.cs

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2008-10-08 20:35:38 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20081008203538-yty5q4gpfx1ldint
Tags: 0.6.1.0-0ubuntu1
* New upstream release.  FFe is (LP: #279328)
* debian/patches/04_fix_locale_path:
  + Fix the translations path sent to gettext.  Without this, translations
    aren't used by Do.
* debian/gnome-do.gconf-defaults:
  + Don't popup the UI on login; wait for the user to summon Do.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
        public static class Do {
32
32
                
 
33
                static string [] args;
33
34
                static GConfXKeybinder keybinder;
34
35
                
35
36
                static DoPreferences preferences;
 
37
                static CommandLinePreferences cliprefs;
36
38
                static Controller controller;
37
39
                static IUniverseManager universe_manager;
38
40
                static NotificationIcon notification_icon;
42
44
                public static void Main (string[] args)
43
45
                {
44
46
                        perfTime = DateTime.Now;
 
47
                        Do.args = args;
45
48
                        
46
49
                        Catalog.Init ("gnome-do", "/usr/local/share/locale");
47
50
                        Gtk.Application.Init ();
51
54
                        Util.Initialize ();
52
55
 
53
56
                        Gdk.Threads.Init ();                    
54
 
 
55
 
                        if (Array.IndexOf (args, "--debug") != -1)
 
57
                        
 
58
                        if (CLIPrefs.Debug)
56
59
                                Log.LogLevel = LogEntryType.Debug;
57
60
 
58
61
                        try {
115
118
 
116
119
                public static DoPreferences Preferences {
117
120
                        get { return preferences ?? 
118
 
                                        preferences = new DoPreferences (); }
 
121
                                        preferences = new DoPreferences (); 
 
122
                        }
 
123
                }
 
124
                
 
125
                public static CommandLinePreferences CLIPrefs {
 
126
                        get { return cliprefs ?? 
 
127
                                        cliprefs = new CommandLinePreferences (args); 
 
128
                        }
119
129
                }
120
130
 
121
131
                public static Controller Controller {