[evince] libview: set has-tooltip property unconditionally at init



commit 9aaddb477cec477ef9b3f21559fd712e0d007169
Author: Mads Chr. Olesen <mads mchro dk>
Date:   Fri Jan 21 16:32:49 2022 +0100

    libview: set has-tooltip property unconditionally at init
    
    The conditional setting seems to be an old artifact of once using
    EvTooltip, instead of GTK tooltips.

 libview/ev-view.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index c6a47c9e1..06aeb4ad4 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -2377,9 +2377,6 @@ ev_view_handle_cursor_over_xy (EvView *view, gint x, gint y)
                                ev_view_set_cursor (view, EV_VIEW_CURSOR_NORMAL);
                }
        }
-
-       if (link || annot || (field && ev_form_field_get_alternate_name (field)))
-               g_object_set (view, "has-tooltip", TRUE, NULL);
 }
 
 /*** Images ***/
@@ -8522,6 +8519,7 @@ ev_view_init (EvView *view)
        gtk_widget_set_has_window (GTK_WIDGET (view), TRUE);
        gtk_widget_set_can_focus (GTK_WIDGET (view), TRUE);
        gtk_widget_set_redraw_on_allocate (GTK_WIDGET (view), FALSE);
+       gtk_widget_set_has_tooltip (GTK_WIDGET (view), TRUE);
 
        context = gtk_widget_get_style_context (GTK_WIDGET (view));
        gtk_style_context_add_class (context, "content-view");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]