Example #1
0
 def toggled(self, button):
     selected_mode = COLUMN_MODE_SMALL
     if self.buttons[1].get_active():
         selected_mode = COLUMN_MODE_WIDE
     if self.buttons[2].get_active():
         selected_mode = COLUMN_MODE_COLUMNAR
     config.settext("browsers", "pane_mode", selected_mode)
     self.browser.set_all_column_mode(selected_mode)
Example #2
0
 def toggled(self, button):
     selected_mode = COLUMN_MODE_SMALL
     if self.buttons[1].get_active():
         selected_mode = COLUMN_MODE_WIDE
     if self.buttons[2].get_active():
         selected_mode = COLUMN_MODE_COLUMNAR
     config.settext("browsers", "pane_mode", selected_mode)
     self.browser.set_all_column_mode(selected_mode)
Example #3
0
    def save(self):
        text = self.__searchbar.get_text()
        config.settext("browsers", "query_text", text)

        selection = self.view.get_selection()
        model, rows = selection.get_selected_rows()
        names = filter(None, [model[row][self.KEY] for row in rows])
        config.set("browsers", "radio", "\n".join(names))
Example #4
0
    def save(self):
        text = self.__searchbar.get_text()
        config.settext("browsers", "query_text", text)

        selection = self.view.get_selection()
        model, rows = selection.get_selected_rows()
        names = filter(None, [model[row][self.KEY] for row in rows])
        config.set("browsers", "radio", "\n".join(names))
Example #5
0
    def save(self):
        config.settext("browsers", "query_text", self._get_text())

        selected = []
        for pane in self._panes:
            selected.append(pane.get_restore_string())

        to_save = u"\n".join(selected)
        config.settext("browsers", "pane_selection", to_save)
Example #6
0
    def save(self):
        config.settext("browsers", "query_text", self._get_text())

        selected = []
        for pane in self._panes:
            selected.append(pane.get_restore_string())

        to_save = u"\n".join(selected)
        config.settext("browsers", "pane_selection", to_save)
Example #7
0
    def save(self):
        text = self.__searchbar.get_text()
        config.settext("browsers", "query_text", text)
        self.api_client.save_auth()

        model, paths = self.view.get_selection().get_selected_rows()
        if paths:
            row = model[paths[0]]
            filter_type = row[self.ModelIndex.TYPE]
            config.set("browsers", "soundcloud_selection", filter_type)
Example #8
0
 def save(self):
     conf = self.__get_config_string()
     config.settext("browsers", "covergrid", conf)
     text = self.__search.get_text()
     config.settext("browsers", "query_text", text)
Example #9
0
 def save(self):
     config.settext("browsers", "query_text", self._get_text())
Example #10
0
 def __changed(self, item, player, mode):
     if item.get_active():
         config.settext("player", "replaygain_mode", mode)
         self.__set_mode(player, mode)
Example #11
0
 def finalize(self, restored):
     config.settext("browsers", "query_text", u"")
Example #12
0
 def save(self):
     config.settext("browsers", "query_text", self._get_text())
     self._sb_box.save()
Example #13
0
 def save(self):
     text = self.__searchbar.get_text()
     config.settext("browsers", "query_text", text)
     self.api_client.save_auth()
Example #14
0
 def finalize(self, restored):
     config.settext("browsers", "query_text", u"")
     if not restored:
         self.fill_panes()
Example #15
0
 def save(self):
     text = self.__searchbar.get_text()
     config.settext("browsers", "query_text", text)
     self.api_client.save_token()
Example #16
0
 def finalize(self, restored):
     config.settext("browsers", "query_text", u"")
     if not restored:
         self.fill_panes()
Example #17
0
 def on_combo_changed(combo):
     new_language = model.get_value(combo.get_active_iter())
     if new_language is None:
         new_language = u""
     config.settext("settings", "language", new_language)
Example #18
0
 def save(self):
     conf = self.__get_config_string()
     config.settext("browsers", "albums", conf)
     text = self.__search.get_text()
     config.settext("browsers", "query_text", text)
Example #19
0
 def on_changed(entry, *args):
     config.settext(section, option, entry.get_text())
Example #20
0
 def on_combo_changed(combo):
     new_language = model.get_value(combo.get_active_iter())
     if new_language is None:
         new_language = u""
     config.settext("settings", "language", new_language)
Example #21
0
 def on_changed(entry, *args):
     config.settext(section, option, entry.get_text())
Example #22
0
 def __changed(self, item, player, mode):
     if item.get_active():
         config.settext("player", "replaygain_mode", mode)
         self.__set_mode(player, mode)