svn path=/trunk/; revision=22042
This commit is contained in:
Matthias Clasen 2009-01-02 20:55:54 +00:00
parent 11956bc22a
commit 125e80a64b
3 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2009-01-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.c:
* gtk/gtkentry.c: Add docs about using ::drag-begin for setting
a custom drag icon.
2009-01-01 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version

View File

@ -7613,6 +7613,11 @@ gtk_entry_get_icon_at_pos (GtkEntry *entry,
* signal, and use gtk_entry_get_current_icon_drag_source() in
* your signal handler to find out if the drag was started from
* an icon.
*
* By default, GTK+ uses the icon as the drag icon. You can use the
* #GtkWidget::drag-begin signal to set a different icon. Note that you
* have to use g_signal_connect_after() to ensure that your signal handler
* gets executed after the default handler.
*/
void
gtk_entry_set_icon_drag_source (GtkEntry *entry,

View File

@ -1595,6 +1595,10 @@ gtk_widget_class_init (GtkWidgetClass *klass)
* The ::drag-begin signal is emitted on the drag source when a drag is
* started. A typical reason to connect to this signal is to set up a
* custom drag icon with gtk_drag_source_set_icon().
*
* Note that some widgets set up a drag icon in the default handler of
* this signal, so you may have to use g_signal_connect_after() to
* override what the default handler did.
*/
widget_signals[DRAG_BEGIN] =
g_signal_new (I_("drag-begin"),