~unity-team/unity/7.1

« back to all changes in this revision

Viewing changes to src/quicklauncher/application-model.vala

  • Committer: Neil Jagdish Patel
  • Date: 2010-02-12 12:29:17 UTC
  • mto: (124.1.2 unity.miscfixes)
  • mto: This revision was merged to the branch mainline in revision 127.
  • Revision ID: neil.patel@canonical.com-20100212122917-ruemhr36vi0mut83
InitialĀ translationĀ support

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
      get {
87
87
        if (this.app_model.is_sticky)
88
88
          {
89
 
            return "Remove from Launcher";
 
89
            return _("Remove from Launcher");
90
90
          }
91
91
        else
92
92
          {
93
 
            return "Keep In Launcher";
 
93
            return _("Keep In Launcher");
94
94
          }
95
95
      }
96
96
    }
188
188
      if (!this.is_sticky)
189
189
        {
190
190
          // we need something outside of this model to decide our priority
191
 
          this._priority = -1000000.0f; 
 
191
          this._priority = -1000000.0f;
192
192
          return;
193
193
        }
194
194
      // grab the current priority from gconf
204
204
        }
205
205
      this._priority = priority;
206
206
    }
207
 
    
 
207
 
208
208
    private void on_app_running_changed ()
209
209
    {
210
210
      notify_active ();
211
211
    }
212
 
    
 
212
 
213
213
    private void on_app_focus_changed ()
214
214
    {
215
215
      if (app.focused) {
217
217
      }
218
218
      notify_focused ();
219
219
    }
220
 
    
 
220
 
221
221
    private void on_app_urgent_changed ()
222
222
    {
223
223
      this.urgent_changed ();
233
233
    {
234
234
      get { return this.app.running; }
235
235
    }
236
 
    
 
236
 
237
237
    public bool is_focused
238
238
    {
239
239
      get { return this.app.focused; }
240
240
    }
241
 
    
242
 
    public bool is_urgent 
 
241
 
 
242
    public bool is_urgent
243
243
    {
244
244
      get { return this.app.get_urgent (); }
245
245
    }
246
 
    
 
246
 
247
247
    public Gdk.Pixbuf icon
248
248
    {
249
249
      get { return _icon; }
250
250
    }
251
 
    
 
251
 
252
252
    public string name
253
253
    {
254
254
      get { return this.app.name; }
330
330
 
331
331
      var open_entry = new LibLauncherShortcut ();
332
332
      open_entry.app = this.app;
333
 
      open_entry.name = "Open..";
 
333
      open_entry.name = _("Open..");
334
334
      ret_list.add (open_entry);
335
335
 
336
336
      var pin_entry = new LauncherPinningShortcut (this);
369
369
    {
370
370
      this.app.close ();
371
371
    }
372
 
    
 
372
 
373
373
    /**
374
374
     * gets the favorite uid for this desktop file
375
375
     */