[shotwell/wip/gtk4: 85/94] Remove custom move handler
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/wip/gtk4: 85/94] Remove custom move handler
- Date: Thu, 28 Jul 2022 21:57:36 +0000 (UTC)
commit 42b6c2d8472d49833cafd5b91b0e743c4cf9cc01
Author: Jens Georg <mail jensge org>
Date: Wed Apr 20 16:50:04 2022 +0200
Remove custom move handler
Let the window manager handle the click-move for the tool window
src/editing_tools/EditingToolWindow.vala | 15 ---------------
1 file changed, 15 deletions(-)
---
diff --git a/src/editing_tools/EditingToolWindow.vala b/src/editing_tools/EditingToolWindow.vala
index a2c35001..28cc77d1 100644
--- a/src/editing_tools/EditingToolWindow.vala
+++ b/src/editing_tools/EditingToolWindow.vala
@@ -6,14 +6,12 @@ public abstract class EditingTools.EditingToolWindow : Gtk.Window {
private bool user_moved = false;
protected EditingToolWindow(Gtk.Window container) {
- set_decorated(false);
set_transient_for(container);
Gtk.Frame outer_frame = new Gtk.Frame(null);
outer_frame.set_child(layout_frame);
base.set_child(outer_frame);
- // add_events(Gdk.EventMask.BUTTON_PRESS_MASK | Gdk.EventMask.KEY_PRESS_MASK);
focusable = true;
set_can_focus(true);
((Gtk.Widget) this).set_opacity(Resources.TRANSIENT_WINDOW_OPACITY);
@@ -37,17 +35,4 @@ public abstract class EditingTools.EditingToolWindow : Gtk.Window {
public bool key_press_event(Gtk.EventControllerKey event, uint keyval, uint keycode, Gdk.ModifierType
modifiers) {
return event.forward(AppWindow.get_instance());
}
-
- #if 0
- public override bool button_press_event(Gdk.EventButton event) {
- // LMB only
- if (event.button != 1)
- return (base.button_press_event != null) ? base.button_press_event(event) : true;
-
- begin_move_drag((int) event.button, (int) event.x_root, (int) event.y_root, event.time);
- user_moved = true;
-
- return true;
- }
- #endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]