[gtk+/wip/carlosg/event-delivery: 18/75] gtktextview: Set "text" pointer cursor
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/carlosg/event-delivery: 18/75] gtktextview: Set "text" pointer cursor
- Date: Tue, 9 May 2017 17:38:42 +0000 (UTC)
commit 5c82ce836f1b091bc75f814a09f24366fdcaa70e
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Mar 31 18:02:16 2017 +0200
gtktextview: Set "text" pointer cursor
This is no longer set through the Gdkwindow, so use private GtkWidget
API.
gtk/gtktextview.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index a0f1ca1..c4565e3 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -4710,6 +4710,7 @@ gtk_text_view_map (GtkWidget *widget)
{
GtkTextView *text_view;
GtkTextViewPrivate *priv;
+ GdkCursor *cursor;
text_view = GTK_TEXT_VIEW (widget);
priv = text_view->priv;
@@ -4728,6 +4729,10 @@ gtk_text_view_map (GtkWidget *widget)
if (priv->bottom_window)
text_window_map (priv->bottom_window);
+ cursor = gdk_cursor_new_from_name (gtk_widget_get_display (widget), "text");
+ gtk_widget_set_cursor (widget, cursor);
+ g_object_unref (cursor);
+
GTK_WIDGET_CLASS (gtk_text_view_parent_class)->map (widget);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]