Check-in [4beef0ad4d]
Overview
| Comment: | Optional toolbar button for search dialog. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
4beef0ad4db9f4c4475f119c59d44aa0 |
| User & Date: | mario on 2018-12-18 22:40:29 |
| Other Links: | manifest | tags |
Context
|
2018-12-18
| ||
| 22:40 | More mapping options in Radiotray hook. check-in: 2c8a7bf1a8 user: mario tags: trunk | |
| 22:40 | Optional toolbar button for search dialog. check-in: 4beef0ad4d user: mario tags: trunk | |
| 22:40 | Allow for subcategories in bookmarks. check-in: 1a034aeac0 user: mario tags: trunk | |
Changes
Modified channels/search.py from [930ffb7c95] to [f9517dd67a].
| ︙ | ︙ | |||
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# Quick search textbox - uses main.q instead
#
class search (AuxiliaryWindow):
# either current channel, or last channel (avoid searching in bookmarks)
current = None
# show search dialog
def menu_search(self, w):
self.search_dialog.show_all();
# Update (x) current_channel checkbox
if not self.current or self.main.current_channel != "bookmarks":
self.current = self.main.current_channel
self.search_dialog_current.set_label("just %s" % self.main.channels[self.current].meta["title"])
| > > > > > > > > > > > > > > | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# Quick search textbox - uses main.q instead
#
class search (AuxiliaryWindow):
# either current channel, or last channel (avoid searching in bookmarks)
current = None
# button + hook
def __init__(self, parent):
AuxiliaryWindow.__init__(self, parent)
parent.searchbtn.connect("clicked", self.menu_search)
self.show_searchbtn()
parent.hooks["config_save"].append(self.show_searchbtn)
def show_searchbtn(self):
active = "searchbtn" in conf and conf.searchbtn
btn = self.main.searchbtn
btn.show()
btn.set_property("visible", active)
btn.set_property("visible_horizontal", active)
# show search dialog
def menu_search(self, w):
self.search_dialog.show_all();
# Update (x) current_channel checkbox
if not self.current or self.main.current_channel != "bookmarks":
self.current = self.main.current_channel
self.search_dialog_current.set_label("just %s" % self.main.channels[self.current].meta["title"])
|
| ︙ | ︙ |
Modified config.py from [d42c2b2b7d] to [70c45975f0].
| ︙ | ︙ | |||
152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
self.playlist_asis = 0
self.window_title = 0
self.google_homepage = 0
self.open_mode = "r" if self.windows and PY2 else "rt"
self.pyquery = 1
self.debug = 0
self.status_color = "#ffeecc"
# update old setting names
def migrate(self):
# 2.1.7
if self.tmp == "/tmp":
self.tmp = "/tmp/streamtuner2"
| > | 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
self.playlist_asis = 0
self.window_title = 0
self.google_homepage = 0
self.open_mode = "r" if self.windows and PY2 else "rt"
self.pyquery = 1
self.debug = 0
self.status_color = "#ffeecc"
self.searchbtn = 0
# update old setting names
def migrate(self):
# 2.1.7
if self.tmp == "/tmp":
self.tmp = "/tmp/streamtuner2"
|
| ︙ | ︙ |