diff --git a/mugshot/CameraMugshotDialog.py b/mugshot/CameraMugshotDialog.py index f85d01e..c99211b 100644 --- a/mugshot/CameraMugshotDialog.py +++ b/mugshot/CameraMugshotDialog.py @@ -24,6 +24,11 @@ from locale import gettext as _ import logging logger = logging.getLogger('mugshot') +import gi +gi.require_version('Gst', '1.0') +gi.require_version('Cheese', '3.0') +gi.require_version('GtkClutter', '1.0') + from gi.repository import Gtk, GObject, Gst, GdkPixbuf from gi.repository import Cheese, Clutter, GtkClutter @@ -66,7 +71,7 @@ class CameraBox(GtkClutter.Embed): self.video_texture, expand=True, x_fill=False, y_fill=False, x_align=Clutter.BoxAlignment.CENTER, y_align=Clutter.BoxAlignment.CENTER) - self.camera = Cheese.Camera.new(self.video_texture, None, 100, 100) + self.camera = Cheese.Camera.new(self.video_texture, "Mugshot", 100, 100) Cheese.Camera.setup(self.camera, None) Cheese.Camera.play(self.camera) self.state = Gst.State.PLAYING diff --git a/po/mugshot.pot b/po/mugshot.pot index f84c894..ea7ed2c 100644 --- a/po/mugshot.pot +++ b/po/mugshot.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-02-13 07:53-0500\n" +"POT-Creation-Date: 2016-03-26 22:03-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -103,7 +103,7 @@ msgstr "" #. Set the record button to retry, and disable it until the capture #. finishes. -#: ../mugshot/CameraMugshotDialog.py:239 +#: ../mugshot/CameraMugshotDialog.py:244 msgid "Retry" msgstr ""