예제 #1
0
파일: meldwindow.py 프로젝트: Bluelich/meld
    def on_configure_event(self, window, event):
        state = event.window.get_state()
        nosave = Gdk.WindowState.FULLSCREEN | Gdk.WindowState.MAXIMIZED
        if not (state & nosave):
            variant = GLib.Variant('(ii)', (event.width, event.height))
            settings.set_value('window-size', variant)

        maximised = state & Gdk.WindowState.MAXIMIZED
        window_state = 'maximized' if maximised else 'normal'
        settings.set_string('window-state', window_state)
예제 #2
0
파일: meldwindow.py 프로젝트: poetnerd/meld
    def on_configure_event(self, window, event):
        state = event.window.get_state()
        nosave = Gdk.WindowState.FULLSCREEN | Gdk.WindowState.MAXIMIZED
        if not (state & nosave):
            variant = GLib.Variant("(ii)", (event.width, event.height))
            settings.set_value("window-size", variant)

        maximised = state & Gdk.WindowState.MAXIMIZED
        window_state = "maximized" if maximised else "normal"
        settings.set_string("window-state", window_state)
예제 #3
0
 def _update_filter_string(self, *args):
     value = [(row[0], row[1], row[2]) for row in self.model]
     settings.set_value(self.key, GLib.Variant('a(sbs)', value))
예제 #4
0
 def _update_columns(self, *args):
     value = [(c[1].lower(), c[0]) for c in self.model]
     settings.set_value(self.key, GLib.Variant('a(sb)', value))
예제 #5
0
파일: meldwindow.py 프로젝트: Psykar/meld
 def on_configure_event(self, window, event):
     state = event.window.get_state()
     nosave = Gdk.WindowState.FULLSCREEN | Gdk.WindowState.MAXIMIZED
     if not (state & nosave):
         variant = GLib.Variant('(ii)', (event.width, event.height))
         settings.set_value('window-size', variant)
예제 #6
0
 def _update_columns(self, *args):
     value = [(c[1].lower(), c[0]) for c in self.model]
     settings.set_value(self.settings_key, GLib.Variant('a(sb)', value))
예제 #7
0
 def _update_filter_string(self, *args):
     value = [(row[0], row[1], row[2]) for row in self.model]
     settings.set_value(self.settings_key, GLib.Variant('a(sbs)', value))