Commit c04a5849 authored by Nong Hoang Tu's avatar Nong Hoang Tu
Browse files

code clean and improve the init gtk_askkill

parent 18872064
import gintro / [gtk, glib, gobject]
# import gtk / cores / [status, refresher, images]
import cores / [handle_activities, handle_killapps]
import gtk / widgets / [details_widget, main_widget, bottom_widget]
import gtk / [ansurf_icons, ansurf_gui_refresher]
......@@ -16,7 +15,6 @@ proc handleRefresh(args: RefreshObj): bool =
]#
let
freshStatus = getSurfStatus()
# portStatus = getStatusPorts()
if args.stackObjs.getVisibleChildName == "main":
updateMain(args.mainObjs, freshStatus)
......
import gintro / gtk
import .. / .. / cores / handle_activities
# import .. / # TODO import object here and try work with the tuple for click
# import .. / ansurf_objects
import .. / .. / cores / handle_killapps
let cb_kill_apps = init_gtk_askkill()
# proc ansurf_gtk_do_start_stop*(b: Button, cb_kill_apps, cb_send_msg: proc) =
proc ansurf_gtk_do_start_stop*(b: Button, cb_send_msg: proc) =
let cb_kill_apps = init_gtk_askkill()
if b.label == "Start":
ansurf_acts_handle_start("gksudo", cb_kill_apps, cb_send_msg)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment