~tkluck/ubuntu/precise/gnome-shell/bluetooth-fix-connection-from-gs-menu

« back to all changes in this revision

Viewing changes to js/ui/telepathyClient.js

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Bicha, Jeremy Bicha
  • Date: 2011-10-24 06:43:05 UTC
  • mfrom: (1.1.34 upstream)
  • Revision ID: james.westby@ubuntu.com-20111024064305-e41enn26mbjf8vv1
Tags: 3.2.1-0ubuntu1
[ Jeremy Bicha ]
* New upstream release (LP: #878672).
  - Restore the IM state on startup - if you were available in when you
    logged out, then you'll be set available again when you log in.
  - Improve searching for contacts in the overview: search more fields,
    show a more meaningful name, require that all search terms match.
  - Improve search for applications in the overview: take frequency into
    account and tweak match algorithm
  - Remove the "Show Password" switch from network password prompts, and
    move the functionality to a right-click menu
  - Add context menus with Cut/Paste options to most entries
  - Display a caps-lock warning in password entries
  - Show the state of installed extensions in Looking Glass
  - Load user extensions after system ones
  - Fix problem with many applications showing extra-large icons in
    notifications
  - Fix a problem where alt-Tab had trouble tracking the current
    application with certain applications such as Emacs.
  - Fix confusion between different users avatar images
  - Remove behavior where you could switch workspaces by bumping
    a dragged window in the overview against a screen edge; it was
    leftover and just confusing.
  - Fix long-standing bug where the Dash in the overview could end up
    mis-sized and run off the screen
  - Fix automatic launching of applications when media is inserted
  - Fix handling of vertically stacked monitors with NVIDIA drivers
  - Translation marking fixes
  - Code cleanups and warning fixes
  - Small memory leak fixes
  - On screen keyboard:
    + Show the keyboard immediately when it's turned enabled
    + Fix problem where keyboard would hide when starting to type
      in the search entry
    + Fix problem with keyboard hiding when selected accented characters
  - Misc bug fixes
* debian/control.in:
  - Bump minimum mutter to 3.2.1
  - Drop dependency against libdconf0 and let dh_installgsettings set
    the right dependencies.
  - Depends on cups-pk-helper instead of recommends to ensure that
    the printer applet works (LP: #877367)
* 01_favorite_apps.patch: dropped, replaced by override file.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
 
1
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
2
2
 
3
3
const DBus = imports.dbus;
4
4
const Gio = imports.gi.Gio;
257
257
        // FIXME: We don't have a 'chat room' icon (bgo #653737) use
258
258
        // system-users for now as Empathy does.
259
259
        let source = new ApproverSource(dispatchOp, _("Invitation"),
260
 
                                        Shell.util_icon_from_string('system-users'));
 
260
                                        Gio.icon_new_for_string('system-users'));
261
261
        Main.messageTray.add(source);
262
262
 
263
263
        let notif = new RoomInviteNotification(source, dispatchOp, channel, contacts[0]);
325
325
 
326
326
        // We got the TpContact
327
327
        let source = new ApproverSource(dispatchOp, _("Call"), isVideo ?
328
 
                                        Shell.util_icon_from_string('camera-web') :
329
 
                                        Shell.util_icon_from_string('audio-input-microphone'));
 
328
                                        Gio.icon_new_for_string('camera-web') :
 
329
                                        Gio.icon_new_for_string('audio-input-microphone'));
330
330
        Main.messageTray.add(source);
331
331
 
332
332
        let notif = new AudioVideoNotification(source, dispatchOp, channel, contacts[0], isVideo);
539
539
 
540
540
    _updateAlias: function() {
541
541
        let oldAlias = this.title;
542
 
        this.setTitle(this._contact.get_alias());
543
 
        this._notification.appendAliasChange(oldAlias, this.title);
544
 
        this.pushNotification(this._notification);
 
542
        let newAlias = this._contact.get_alias();
 
543
 
 
544
        if (oldAlias == newAlias)
 
545
            return;
 
546
 
 
547
        this.setTitle(newAlias);
 
548
        this._notification.appendAliasChange(oldAlias, newAlias);
545
549
    },
546
550
 
547
551
    createNotificationIcon: function() {
570
574
    open: function(notification) {
571
575
          if (this._client.is_handling_channel(this._channel)) {
572
576
              // We are handling the channel, try to pass it to Empathy
573
 
              this._client.delegate_channels_async([this._channel], global.get_current_time(), "", null);
 
577
              this._client.delegate_channels_async([this._channel], global.get_current_time(), '', null);
574
578
          }
575
579
          else {
576
580
              // We are not the handler, just ask to present the channel
1198
1202
        this.setResident(true);
1199
1203
 
1200
1204
        this.addButton('reject', _("Reject"));
 
1205
        /* translators: this is a button label (verb), not a noun */
1201
1206
        this.addButton('answer', _("Answer"));
1202
1207
 
1203
1208
        this.connect('action-invoked', Lang.bind(this, function(self, action) {