~ubuntu-branches/ubuntu/raring/software-center/raring-proposed

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/widgets/buttons.py

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2012-12-06 17:30:50 UTC
  • Revision ID: package-import@ubuntu.com-20121206173050-n7mxi5fzlsvtdh9l
Tags: 5.5.2
* lp:~mvo/software-center/fix-pygobject-deprecation-warnings:
  - fix deprecation warninings with the latest python-gi
* lp:~mvo/software-center/minor-logging-fixes:
  - drop some LOG.info() messages to LOG.debug() to spam the user
    less
* lp:~mvo/software-center/trivial-close-ui-tweak:
  - hide the main window immediately when closing down
* lp:~mvo/software-center/5.4-fix-save-person-to-config:
  - This branch ensures that the "username" is saved everytime
    that the ubuntu sso whoami call is done
* lp:~mvo/software-center/use-dpkg-builddeps:
  - use dpkg-checkbuilddeps to find test-dependencies
* lp:~mvo/software-center/update-sc-cmdline-flexibility:
  - update-software-center-agent: 
    + add --target-db-path commandline
  - update-software-center: 
    + add --app-install-desktop-dir and --target-db-path commandline
* lp:~mvo/software-center/raring-pep8:
  - fixes for new pep8

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import cairo
20
20
 
21
 
from gi.repository import Gtk, Gdk, Pango, GObject, GdkPixbuf
 
21
from gi.repository import Gtk, Gdk, Pango, GObject, GdkPixbuf, GLib
22
22
from gettext import gettext as _
23
23
 
24
24
from softwarecenter.backend.installbackend import get_install_backend
197
197
        self.content_left.pack_start(self.image, False, False, 0)
198
198
 
199
199
        self.title = Gtk.Label.new(self._MARKUP %
200
 
            GObject.markup_escape_text(label))
 
200
            GLib.markup_escape_text(label))
201
201
        self.title.set_alignment(0.0, 0.5)
202
202
        self.title.set_use_markup(True)
203
203
        self.title.set_tooltip_text(label)
207
207
        categories = helper.get_categories(doc)
208
208
        if categories is not None:
209
209
            self.category = Gtk.Label.new('<span font_desc="%i">%s</span>' %
210
 
                (em(0.6), GObject.markup_escape_text(categories)))
 
210
                (em(0.6), GLib.markup_escape_text(categories)))
211
211
            self.category.set_use_markup(True)
212
212
            self.category.set_alignment(0.0, 0.5)
213
213
            self.category.set_ellipsize(Pango.EllipsizeMode.END)
544
544
        "clicked": (GObject.SignalFlags.RUN_LAST,
545
545
                    None,
546
546
                    (),)
547
 
        }
 
547
    }
548
548
 
549
549
    def __init__(self, markup="", uri="none"):
550
550
        Gtk.Label.__init__(self)