+5
-9
lines changedFilter options
+5
-9
lines changed Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
1
1
# -*- coding: utf-8 -*-
2
2
from gi.repository import Gtk, GLib, Gdk
3
3
4
-
from .theme_model import THEME_MODEL_NEW, get_theme_options_by_key
4
+
from .theme_model import THEME_MODEL, get_theme_options_by_key
5
5
from .palette_cache import PaletteCache
6
6
from .color import (
7
7
convert_theme_color_to_gdk, convert_gdk_to_theme_color,
@@ -532,7 +532,7 @@ def build_theme_model_rows(self): # pylint: disable=too-many-branches
532
532
self.mainbox.add(self._error_messages_row)
533
533
self._all_rows = {}
534
534
self._all_section_boxes = {}
535
-
for section_id, section in THEME_MODEL_NEW.items():
535
+
for section_id, section in THEME_MODEL.items():
536
536
self._all_section_boxes[section_id] = section_box = SectionListBox()
537
537
for option_idx, theme_value in enumerate(section):
538
538
key = theme_value.get('key')
@@ -629,7 +629,7 @@ def open_theme(self, theme): # pylint: disable=too-many-branches
629
629
if "NOGUI" in theme:
630
630
error_messages.append(_("Can't Be Edited in GUI"))
631
631
632
-
for section_id, section in THEME_MODEL_NEW.items():
632
+
for section_id, section in THEME_MODEL.items():
633
633
rows_displayed_in_section = 0
634
634
for option_idx, theme_value in enumerate(section):
635
635
key = theme_value.get('key')
@@ -671,12 +671,8 @@ def open_theme(self, theme): # pylint: disable=too-many-branches
671
671
672
672
def hide_all_rows(self):
673
673
self._error_messages_row.hide()
674
-
for section_id, section in THEME_MODEL_NEW.items():
675
-
for option_idx in range(len(section)):
676
-
row = self._all_rows.get(section_id, {}).get(option_idx)
677
-
if not row:
678
-
continue
679
-
row.hide()
674
+
for section_id in THEME_MODEL:
675
+
self._all_section_boxes[section_id].hide()
680
676
681
677
def disable(self):
682
678
# self.transient_for.disable()
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4