gnome笔记
    
2019-09-19使用
2019-09-19
调试
使用log
- 在终端接收log:
| journalctl /usr/bin/gnome-shell -f | 
- 在js中使用log(message)打印log
卡死(没用,TODO)
- ctrl+- alt+- f3切换终端
- DISPLAY=:0 gnome-shell
函数
TODO
- set_position(int, int):TODO(数据类型)
- set_chlild(?)
- connect(String e, function f):监听事件- e,之后执行- f
- insert_child_at_index(?, int):TODO
- remove_child()
const St = imports.gi.St
- St.Bin({}):按钮- style_class
- reactive
- can_focus
- x_fill
- y_fill
- track_hover
 
- St.Icon({}):图标- icon_name
- style_class
 
- St.Label({}):TODO- style_class
- text
 
const Main = imports.ui.main
- Main.uiGroup.add_actor():TODO
- Main.uiGroup.remove_actor():TODO
- Main.layoutManager.primaryMonitor:TODO
Tweener = imports.ui.tweener
- Tweener.addTween(?, {}):TODO- opacity
- time
- transition
- onComplete:回调函数
 
元素
- pannel:状态栏- _rightBox
- _leftBox