gtk+ r22042 - in trunk: . gtk
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22042 - in trunk: . gtk
- Date: Fri, 2 Jan 2009 20:55:55 +0000 (UTC)
Author: matthiasc
Date: Fri Jan 2 20:55:54 2009
New Revision: 22042
URL: http://svn.gnome.org/viewvc/gtk+?rev=22042&view=rev
Log:
Add docs
Modified:
trunk/ChangeLog
trunk/gtk/gtkentry.c
trunk/gtk/gtkwidget.c
Modified: trunk/gtk/gtkentry.c
==============================================================================
--- trunk/gtk/gtkentry.c (original)
+++ trunk/gtk/gtkentry.c Fri Jan 2 20:55:54 2009
@@ -7613,6 +7613,11 @@
* 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,
Modified: trunk/gtk/gtkwidget.c
==============================================================================
--- trunk/gtk/gtkwidget.c (original)
+++ trunk/gtk/gtkwidget.c Fri Jan 2 20:55:54 2009
@@ -1595,6 +1595,10 @@
* 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"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]