186
187
188
189
190
191
192
193
194
195
196
197
198
199 | "menu_toolbar_size_large": lambda w: (self.toolbar.set_icon_size(gtk.ICON_SIZE_DIALOG)),
# else
"menu_properties": config_dialog.open,
"config_cancel": config_dialog.hide,
"config_save": config_dialog.save,
"config_player_edited": config_dialog.edited_player_row,
"config_player_edited_2": config_dialog.edited_player_row_2,
"update_categories": self.update_categories,
"update_favicons": self.update_favicons,
"app_state": self.app_state,
"bookmark": self.bookmark,
"save_as": self.save_as,
"menu_about": lambda w: AboutStreamtuner2(),
"menu_help": action.action.help, |
>
>
| 186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201 | "menu_toolbar_size_large": lambda w: (self.toolbar.set_icon_size(gtk.ICON_SIZE_DIALOG)),
# else
"menu_properties": config_dialog.open,
"config_cancel": config_dialog.hide,
"config_save": config_dialog.save,
"config_player_edited": config_dialog.edited_player_row,
"config_player_edited_2": config_dialog.edited_player_row_2,
"config_record_edited": config_dialog.edited_record_row,
"config_record_edited_2": config_dialog.edited_record_row_2,
"update_categories": self.update_categories,
"update_favicons": self.update_favicons,
"app_state": self.app_state,
"bookmark": self.bookmark,
"save_as": self.save_as,
"menu_about": lambda w: AboutStreamtuner2(),
"menu_help": action.action.help, |
797
798
799
800
801
802
803
804
805
806
807
808
809
810 |
# Gtk callback to update ListStore when entries get edited
def edited_player_row(self, cell, path, new_text, user_data=None, column=0):
main.config_play[path][column] = new_text
def edited_player_row_2(self, cell, path, new_text, user_data=None):
self.edited_player_row(cell, path, new_text, column=1)
# list of Gtk themes in dropdown
def combobox_theme(self):
# find themes
themedirs = (conf.share+"/themes", conf.dir+"/themes", "/usr/share/themes")
themes = ["no theme"] |
>
>
>
>
| 799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816 |
# Gtk callback to update ListStore when entries get edited
def edited_player_row(self, cell, path, new_text, user_data=None, column=0):
main.config_play[path][column] = new_text
def edited_player_row_2(self, cell, path, new_text, user_data=None):
self.edited_player_row(cell, path, new_text, column=1)
def edited_record_row(self, cell, path, new_text, user_data=None, column=0):
main.config_record[path][column] = new_text
def edited_record_row_2(self, cell, path, new_text, user_data=None):
self.edited_record_row(cell, path, new_text, column=1)
# list of Gtk themes in dropdown
def combobox_theme(self):
# find themes
themedirs = (conf.share+"/themes", conf.dir+"/themes", "/usr/share/themes")
themes = ["no theme"] |