fix: clean up GTK/WebKit integration and event handling
- fix split pane expansion/orientation setup logic - remove deferred pane positioning on show events - load VTE with interactive bash rcfile - migrate WebKit2 bindings from 4.0 to 4.1 - add icons path accessor to PathManager - normalize startup IPC file event payloads with FILE| prefix - alias App_Event_Types and update plugin event references - guard widget registry against unnamed builder objects - fix application_dirs home path lookup - remove unused GLib import from completion controller - reorder setproctitle import in __main__
This commit is contained in:
@@ -47,6 +47,8 @@ def execute(
|
||||
|
||||
pane.set_hexpand(True)
|
||||
pane.set_vexpand(True)
|
||||
scrolled_win1.set_hexpand(True)
|
||||
scrolled_win2.set_vexpand(True)
|
||||
pane.set_wide_handle(True)
|
||||
|
||||
container.remove(scrolled_win1)
|
||||
@@ -54,21 +56,9 @@ def execute(
|
||||
pane.pack2( scrolled_win2, True, True )
|
||||
container.add(pane)
|
||||
|
||||
def _show(pane, alloc, is_vertical: bool):
|
||||
if is_vertical:
|
||||
pane.set_position(alloc.width / 2)
|
||||
else:
|
||||
pane.set_position(alloc.height / 2)
|
||||
|
||||
pane.disconnect(pane.show_id)
|
||||
|
||||
is_control, is_shift, is_alt = modkeys_states
|
||||
alloc = container.get_allocation()
|
||||
if char_str == "|":
|
||||
pane.show_id = pane.connect("show", _show, alloc, True)
|
||||
pane.set_orientation(Gtk.Orientation.VERTICAL)
|
||||
elif char_str == "\\":
|
||||
pane.show_id = pane.connect("show", _show, alloc, False)
|
||||
pane.set_orientation(Gtk.Orientation.HORIZONTAL)
|
||||
|
||||
pane.show_all()
|
||||
|
||||
Reference in New Issue
Block a user