mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 04:49:20 +08:00
ToggleDevTools -> OpenDevTools
More refactor CGO methods.
This commit is contained in:
parent
02a1b540ce
commit
29363fc07f
@ -1066,11 +1066,6 @@ func (w *linuxWebviewWindow) startDrag() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (w *linuxWebviewWindow) flash(enabled bool) {
|
||||
// Flash the window to get the user's attention
|
||||
C.gtk_window_set_urgency_hint(w.gtkWindow(), gtkBool(enabled))
|
||||
}
|
||||
|
||||
func enableDevTools(webview pointer) {
|
||||
settings := C.webkit_web_view_get_settings((*C.WebKitWebView)(webview))
|
||||
enabled := C.webkit_settings_get_enable_developer_extras(settings)
|
||||
|
@ -104,19 +104,6 @@ func (w *linuxWebviewWindow) disableSizeConstraints() {
|
||||
w.setMinMaxSize(x, y, width*scale, height*scale)
|
||||
}
|
||||
|
||||
func (w *linuxWebviewWindow) fullscreen() {
|
||||
w.maximise()
|
||||
//w.lastWidth, w.lastHeight = w.size()
|
||||
x, y, width, height, scale := w.getCurrentMonitorGeometry()
|
||||
if x == -1 && y == -1 && width == -1 && height == -1 {
|
||||
return
|
||||
}
|
||||
w.setMinMaxSize(0, 0, width*scale, height*scale)
|
||||
w.setSize(width*scale, height*scale)
|
||||
windowFullscreen(w.window)
|
||||
w.setRelativePosition(0, 0)
|
||||
}
|
||||
|
||||
func (w *linuxWebviewWindow) unminimise() {
|
||||
w.present()
|
||||
}
|
||||
@ -323,20 +310,6 @@ func (w *linuxWebviewWindow) run() {
|
||||
}
|
||||
}
|
||||
|
||||
func (w *linuxWebviewWindow) destroy() {
|
||||
w.parent.markAsDestroyed()
|
||||
// Free menu
|
||||
if w.gtkmenu != nil {
|
||||
menuDestroy(w.gtkmenu)
|
||||
w.gtkmenu = nil
|
||||
}
|
||||
windowDestroy(w.window)
|
||||
}
|
||||
|
||||
func (w *linuxWebviewWindow) setEnabled(enabled bool) {
|
||||
widgetSetSensitive(w.window, enabled)
|
||||
}
|
||||
|
||||
func (w *linuxWebviewWindow) startResize(border string) error {
|
||||
// FIXME: what do we need to do here?
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user