summaryrefslogtreecommitdiff
path: root/libview/ev-annotation-window.c
diff options
context:
space:
mode:
authorJosé Aliste <[email protected]>2013-05-21 00:04:49 -0400
committerraveit65 <[email protected]>2017-08-14 20:02:44 +0200
commitce879aea4038548fa04beacf3ed0df1b8684ebbe (patch)
treeb9f232cf07157b9b89ffaef6e79c8539d3dddb79 /libview/ev-annotation-window.c
parentc1ddcaba5fb552a8321afebdae518944c4d10e8c (diff)
downloadatril-ce879aea4038548fa04beacf3ed0df1b8684ebbe.tar.bz2
atril-ce879aea4038548fa04beacf3ed0df1b8684ebbe.tar.xz
libview: Fix focus on ev_annotation_window
Make annotation windows always accept input focus. Based on patch by Florian Echtler. https://bugzilla.gnome.org/show_bug.cgi?id=668446 Taken from: https://git.gnome.org/browse/evince/commit/?id=24c1029
Diffstat (limited to 'libview/ev-annotation-window.c')
-rw-r--r--libview/ev-annotation-window.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c
index 2b48e799..6e0ee9ed 100644
--- a/libview/ev-annotation-window.c
+++ b/libview/ev-annotation-window.c
@@ -375,7 +375,6 @@ ev_annotation_window_init (EvAnnotationWindow *window)
gtk_container_set_border_width (GTK_CONTAINER (window), 2);
- gtk_window_set_accept_focus (GTK_WINDOW (window), FALSE);
gtk_window_set_decorated (GTK_WINDOW (window), FALSE);
gtk_window_set_skip_taskbar_hint (GTK_WINDOW (window), TRUE);
gtk_window_set_skip_pager_hint (GTK_WINDOW (window), TRUE);
@@ -508,24 +507,6 @@ ev_annotation_window_focus_out_event (GtkWidget *widget,
return FALSE;
}
-static gboolean
-ev_annotation_window_enter_notify_event (GtkWidget *widget,
- GdkEventCrossing *event)
-{
- gtk_window_set_accept_focus (GTK_WINDOW (widget), TRUE);
-
- return FALSE;
-}
-
-static gboolean
-ev_annotation_window_leave_notify_event (GtkWidget *widget,
- GdkEventCrossing *event)
-{
- gtk_window_set_accept_focus (GTK_WINDOW (widget), FALSE);
-
- return FALSE;
-}
-
static void
ev_annotation_window_class_init (EvAnnotationWindowClass *klass)
{
@@ -540,8 +521,6 @@ ev_annotation_window_class_init (EvAnnotationWindowClass *klass)
gtk_widget_class->configure_event = ev_annotation_window_configure_event;
gtk_widget_class->focus_in_event = ev_annotation_window_focus_in_event;
gtk_widget_class->focus_out_event = ev_annotation_window_focus_out_event;
- gtk_widget_class->enter_notify_event = ev_annotation_window_enter_notify_event;
- gtk_widget_class->leave_notify_event = ev_annotation_window_leave_notify_event;
g_object_class_install_property (g_object_class,
PROP_ANNOTATION,