222
222
"Find '%s' on AskUbuntu.com" % search)
224
224
def add_questions_results(self, search, model):
225
icon_hint = Gio.ThemedIcon.new("help").to_string() # Questions Icon
225
icon_hint = Gio.ThemedIcon.new("help").to_string() # Questions Icon
226
226
for url, title in askubuntu_bridge.get_questions(search):
227
model.append(url, icon_hint, GROUP_QUESTIONS,
227
model.append(url, icon_hint, GROUP_QUESTIONS,
228
228
"text/html", title, title)
230
230
def add_tags_results(self, search, model):
231
icon_hint = Gio.ThemedIcon.new("tag-new").to_string() # Tags Icon
231
icon_hint = Gio.ThemedIcon.new("tag-new").to_string() # Tags Icon
232
232
for url, title in askubuntu_bridge.get_tags(search):
233
233
model.append(url, icon_hint, GROUP_TAGS,
234
234
"text/html", title, title)
238
236
def add_badges_results(self, search, model):
239
icon_hint = Gio.ThemedIcon.new("help").to_string() # Badge Icon
237
icon_hint = Gio.ThemedIcon.new("help").to_string() # Badge Icon
240
238
for url, title in askubuntu_bridge.get_badges(search):
241
239
model.append(url, icon_hint, GROUP_BADGES,
242
240
"text/html", title, title)
244
242
def add_users_results(self, search, model):
245
icon_hint = Gio.ThemedIcon.new("stock_person").to_string() # User Icon
243
icon_hint = Gio.ThemedIcon.new("stock_person").to_string() # User Icon
246
244
for url, title in askubuntu_bridge.get_users(search):
247
245
model.append(url, icon_hint, GROUP_USERS,
248
246
"text/html", title, title)