[gtk+/wip/carlosg/event-delivery: 14/24] gtkentry: Set "text" pointer cursor
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/carlosg/event-delivery: 14/24] gtkentry: Set "text" pointer cursor
- Date: Fri, 31 Mar 2017 17:35:01 +0000 (UTC)
commit be21f40b1983600c00d4c4ad509fa2786b351a1c
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Mar 31 18:01:13 2017 +0200
gtkentry: Set "text" pointer cursor
This is no longer set through the GdkWindow, so use the private
GtkWidget API.
gtk/gtkentry.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index dded3b8..b1524b8 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -2454,6 +2454,7 @@ gtk_entry_init (GtkEntry *entry)
{
GtkEntryPrivate *priv;
GtkCssNode *widget_node;
+ GdkCursor *cursor;
gint i;
entry->priv = gtk_entry_get_instance_private (entry);
@@ -2527,6 +2528,10 @@ gtk_entry_init (GtkEntry *entry)
gtk_css_node_set_state (priv->undershoot_node[i], gtk_css_node_get_state (widget_node) &
~GTK_STATE_FLAG_DROP_ACTIVE);
g_object_unref (priv->undershoot_node[i]);
}
+
+ cursor = gdk_cursor_new_from_name (gtk_widget_get_display (GTK_WIDGET (entry)),
+ "text");
+ gtk_widget_set_cursor (GTK_WIDGET (entry), cursor);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]