[libgd/wip/ernestask/gtk4: 1/22] main-icon-box: drop fake event stuff
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd/wip/ernestask/gtk4: 1/22] main-icon-box: drop fake event stuff
- Date: Sun, 11 Mar 2018 08:31:31 +0000 (UTC)
commit ba062789606c77d3026447c50c2ce30b570eaf93
Author: Ernestas Kulik <ernestask gnome org>
Date: Tue Mar 6 20:03:53 2018 +0200
main-icon-box: drop fake event stuff
There is no replacement for that.
See https://bugzilla.gnome.org/show_bug.cgi?id=774914.
libgd/gd-main-icon-box.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/libgd/gd-main-icon-box.c b/libgd/gd-main-icon-box.c
index 0f9323a..86acd19 100644
--- a/libgd/gd-main-icon-box.c
+++ b/libgd/gd-main-icon-box.c
@@ -640,7 +640,6 @@ gd_main_icon_box_focus (GtkWidget *widget, GtkDirectionType direction)
GdMainIconBox *self = GD_MAIN_ICON_BOX (widget);
GdMainIconBoxPrivate *priv;
GdkEvent *event = NULL;
- GdkEvent *fake_event = NULL;
gboolean res;
priv = gd_main_icon_box_get_instance_private (self);
@@ -664,14 +663,9 @@ gd_main_icon_box_focus (GtkWidget *widget, GtkDirectionType direction)
goto out;
}
- fake_event = gdk_event_copy (event);
- fake_event->key.state |= GDK_CONTROL_MASK;
-
- gtk_main_do_event (fake_event);
res = GDK_EVENT_STOP;
out:
- g_clear_pointer (&fake_event, (GDestroyNotify) gdk_event_free);
g_clear_pointer (&event, (GDestroyNotify) gdk_event_free);
return res;
}
@@ -722,7 +716,6 @@ gd_main_icon_box_move_cursor (GtkFlowBox *flow_box, GtkMovementStep step, gint c
GdMainIconBox *self = GD_MAIN_ICON_BOX (flow_box);
GdMainIconBoxPrivate *priv;
GdkEvent *event = NULL;
- GdkEvent *fake_event = NULL;
gboolean res;
priv = gd_main_icon_box_get_instance_private (self);
@@ -746,15 +739,9 @@ gd_main_icon_box_move_cursor (GtkFlowBox *flow_box, GtkMovementStep step, gint c
goto out;
}
- fake_event = gdk_event_copy (event);
- fake_event->key.state |= GDK_CONTROL_MASK;
- fake_event->key.state &= ~GDK_SHIFT_MASK;
-
- gtk_main_do_event (fake_event);
res = GDK_EVENT_STOP;
out:
- g_clear_pointer (&fake_event, (GDestroyNotify) gdk_event_free);
g_clear_pointer (&event, (GDestroyNotify) gdk_event_free);
return res;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]