5
0
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:
Lea Anthony 2024-02-09 20:06:38 +11:00 committed by Travis McLane
parent 02a1b540ce
commit 29363fc07f
2 changed files with 0 additions and 32 deletions

View File

@ -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)

View File

@ -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