[gedit] notebook: improve comments about DND



commit 66bfd41c4c595c072296900420f4ba2659da86f5
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Jun 25 16:49:57 2015 +0200

    notebook: improve comments about DND

 gedit/gedit-notebook.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-notebook.c b/gedit/gedit-notebook.c
index ec0deec..16465ca 100644
--- a/gedit/gedit-notebook.c
+++ b/gedit/gedit-notebook.c
@@ -304,8 +304,11 @@ gedit_notebook_page_added (GtkNotebook *notebook,
        tab_label = gtk_notebook_get_tab_label (notebook, page);
        g_return_if_fail (GEDIT_IS_TAB_LABEL (tab_label));
 
-       /* For a DND from one notebook to another, the same tab_label is
+       /* For a DND from one notebook to another, the same tab_label can be
         * used, so we need to connect the signal here.
+        * More precisely, the same tab_label is used when the drop zone is in
+        * the tab labels (not the GeditView), that is, when the DND is handled
+        * by the GtkNotebook implementation.
         */
        g_signal_connect (tab_label,
                          "close-clicked",
@@ -326,7 +329,7 @@ gedit_notebook_remove (GtkContainer *container,
        tab_label = gtk_notebook_get_tab_label (notebook, widget);
        g_return_if_fail (GEDIT_IS_TAB_LABEL (tab_label));
 
-       /* For a DND from one notebook to another, the same tab_label is
+       /* For a DND from one notebook to another, the same tab_label can be
         * used, so we need to disconnect the signal.
         */
        g_signal_handlers_disconnect_by_func (tab_label,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]