~kokoto-java/kazam/depencie-and-stuff

« back to all changes in this revision

Viewing changes to kazam/frontend/preferences.py

  • Committer: David Klasinc
  • Date: 2012-11-11 19:36:05 UTC
  • mfrom: (193.2.82 unstable)
  • Revision ID: bigwhale@lubica.net-20121111193605-vh3fxglxwfhyh8ne
Merged from unstable branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
from kazam.utils import *
31
31
from kazam.backend.prefs import *
32
32
from kazam.backend.constants import *
33
 
from kazam.backend.gstreamer_gi import detect_codecs, get_codec
 
33
from kazam.backend.gstreamer import detect_codecs, get_codec
34
34
 
35
35
class Preferences(GObject.GObject):
 
36
    __gsignals__ = {
 
37
        "prefs-quit" : (GObject.SIGNAL_RUN_LAST,
 
38
                        None,
 
39
                        (),
 
40
            ),
 
41
        }
 
42
 
36
43
    def __init__(self):
37
44
        GObject.GObject.__init__(self)
38
45
        logger.debug("Preferences Init.")
58
65
 
59
66
        audio_renderer = Gtk.CellRendererText()
60
67
        audio_renderer.props.ellipsize = Pango.EllipsizeMode.END
61
 
        audio_renderer.props.max_width_chars = 45
 
68
        audio_renderer.props.max_width_chars = 40
62
69
 
63
70
        self.combobox_codec.pack_start(codec_renderer, True)
64
71
        self.combobox_codec.add_attribute(codec_renderer, "text", 1)
209
216
 
210
217
    def cb_delete_event(self, widget, user_data):
211
218
        logger.debug("Deleteting preferences window")
 
219
        self.emit("prefs-quit")
212
220
 
213
221
    def cb_switch_countdown_splash(self, widget, user_data):
214
222
        prefs.countdown_splash = widget.get_active()