From f828068df9a088c2e52bac615629121faa7deced Mon Sep 17 00:00:00 2001 From: Arun Sivaraman <arunsivaramanneo@gmail.com> Date: Sat, 30 Dec 2017 20:10:15 +0530 Subject: [PATCH] Updated Search UI --- Files/GPUViewer.py | 4 ++-- Files/OpenGLViewer.py | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Files/GPUViewer.py b/Files/GPUViewer.py index e3acb07..6f51cda 100755 --- a/Files/GPUViewer.py +++ b/Files/GPUViewer.py @@ -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: @@ -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() diff --git a/Files/OpenGLViewer.py b/Files/OpenGLViewer.py index fc3635e..dc5fdbf 100644 --- a/Files/OpenGLViewer.py +++ b/Files/OpenGLViewer.py @@ -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): @@ -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)