Skip to content

Commit

Permalink
Updated Search UI
Browse files Browse the repository at this point in the history
  • Loading branch information
arunsivaramanneo committed Dec 30, 2017
1 parent 038ba52 commit f828068
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Files/GPUViewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def main():
setting = Gtk.Settings.get_default()

if Const.THEME1:
setting.set_property("gtk-theme-name","FlatPlat")
setting.set_property("gtk-theme-name","Adapta")
elif Const.THEME2:
setting.set_property("gtk-theme-name","Adapta")
elif Const.THEME3:
Expand All @@ -41,7 +41,7 @@ def main():
t2.join()

if isOpenclSupported():
openclTab = gtk.createTab(Const.OPEN_CL_PNG, 100, Const.ICON_HEIGHT,False)
openclTab = gtk.createTab(Const.OPEN_CL_PNG, 130, Const.ICON_HEIGHT,False)
t4=threading.Thread(target=openCL,args=(openclTab,))
t4.start()

Expand Down
11 changes: 7 additions & 4 deletions Files/OpenGLViewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def button_enable(win,value):
OpenGLExt_list = Gtk.ListStore(str, str)
OpenGLExt_list_filter = OpenGLExt_list.filter_new()
TreeGLExt = Gtk.TreeView(OpenGLExt_list_filter, expand=True)
TreeGLExt.set_headers_visible(False)
frame4 = Gtk.Frame(label=" ")

def radcall2(button):
Expand Down Expand Up @@ -301,12 +302,14 @@ def refresh_filter(self):
grid.attach(frame4, 0, 3, 12, 1)
grid3 = Gtk.Grid()
frame4.add(grid3)
entry = Gtk.Entry()
frame5 = Gtk.Frame()
grid3.attach(frame5,0,0,1,1)
entry = Gtk.SearchEntry()
entry.set_placeholder_text("Type here to filter.....")
entry.connect("changed",refresh_filter)
grid3.add(entry)
entry.connect("search-changed",refresh_filter)
frame5.add(entry)
scrollable_treelist2 = createScrollbar(TreeGLExt)
grid3.attach_next_to(scrollable_treelist2,entry,Gtk.PositionType.BOTTOM, 1, 1)
grid3.attach_next_to(scrollable_treelist2,frame5,Gtk.PositionType.BOTTOM, 1, 1)

OpenGLExt_list_filter.set_visible_func(searchTree)

Expand Down

0 comments on commit f828068

Please sign in to comment.