[gtk+] link button: Set a drag icon
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] link button: Set a drag icon
- Date: Sun, 10 Dec 2017 19:05:22 +0000 (UTC)
commit 6af4947e70e01f296d8a28bc52333b9529971106
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Dec 10 14:05:01 2017 -0500
link button: Set a drag icon
It is a bit odd to drag nothing around, so set an icon.
gtk/gtklinkbutton.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c
index 489178a..1426a36 100644
--- a/gtk/gtklinkbutton.c
+++ b/gtk/gtklinkbutton.c
@@ -237,6 +237,7 @@ gtk_link_button_init (GtkLinkButton *link_button)
targets,
GDK_ACTION_COPY);
gdk_content_formats_unref (targets);
+ gtk_drag_source_set_icon_name (GTK_WIDGET (link_button), "text-x-generic");
priv->click_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (link_button));
gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (priv->click_gesture), FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]