diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-07-11 17:51:54 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-07-11 17:51:54 +0000 |
commit | 13a341e0e9f8f99c3749161ab60424eb10815d59 (patch) | |
tree | d56ea566430bbf66e69f7509cb9a0780f63de429 /gtk/gtktextutil.h | |
parent | 7912643e8f2f7a98d625ce99e8a924b1a2fd744c (diff) | |
download | gtk+-13a341e0e9f8f99c3749161ab60424eb10815d59.tar.gz |
When dragging text, use a drag icon showing the (ellipsized) text that is
2005-07-11 Matthias Clasen <mclasen@redhat.com>
When dragging text, use a drag icon showing the (ellipsized)
text that is being dragged: (#161132, Kevin Duffus, patch
by Carlos Garnacho Parro)
* gtk/gtktextutil.h:
* gtk/gtktextutil.c (_gtk_text_util_create_drag_icon): Add
a function to create a pixmap for use when dragging text.
* gtk/gtktextview.c (gtk_text_view_start_selection_dnd):
* gtk/gtklabel.c (gtk_label_motion):
* gtk/gtkentry.c (gtk_entry_motion_notify): Use a drag icon
showing the text being dragged.
2005-07-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (gtk_entry_move_forward_word)
(gtk_entry_move_backward_word): Match the text view change
to allow selecting whitespace with double-click.
Diffstat (limited to 'gtk/gtktextutil.h')
-rw-r--r-- | gtk/gtktextutil.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtktextutil.h b/gtk/gtktextutil.h index 2a9b6d3b2f..27b900e435 100644 --- a/gtk/gtktextutil.h +++ b/gtk/gtktextutil.h @@ -30,6 +30,7 @@ #include <gtk/gtkwidget.h> #include <gtk/gtkmenushell.h> +#include <gtk/gtkeditable.h> G_BEGIN_DECLS @@ -46,5 +47,8 @@ void _gtk_text_util_append_special_char_menuitems (GtkMenuShell *me G_END_DECLS +GdkPixmap* _gtk_text_util_create_drag_icon (GtkWidget *widget, + gchar *text, + gsize len); #endif /* __GTK_TEXT_UTIL_H__ */ |