diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2006-12-28 16:38:49 +0000 |
---|---|---|
committer | Carlos Garnacho <carlosg@src.gnome.org> | 2006-12-28 16:38:49 +0000 |
commit | d42bbb646619204913cae54eb675e898437d0ebe (patch) | |
tree | 694816096f3bff3e3c0a0f8301a30e0eb96c7d8b /gtk/gtkenums.h | |
parent | 693c3c2649abb0f907d144c05a1d55edb6a5f97c (diff) | |
download | gtk+-d42bbb646619204913cae54eb675e898437d0ebe.tar.gz |
Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.
2006-12-28 Carlos Garnacho <carlosg@gnome.org>
Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.
* gtk/gtkwidget.c (gtk_widget_class_init): add "drag-failed" signal.
* gtk/gtkmarshalers.list: add new marshaler definition.
* gtk/gtkenums.h: add GtkDragResult enum.
* gtk/gtkdnd.c (gtk_drag_drop_finished): emit "drag-failed" if DND
operation wasn't successful.
(_gtk_drag_source_handle_event) (gtk_drag_drop)
(gtk_drag_selection_get) (gtk_drag_cancel) (gtk_drag_key_cb)
(gtk_drag_grab_broken_event_cb) (gtk_drag_grab_notify_cb)
(gtk_drag_button_release_cb) (gtk_drag_abort_timeout): tell
gtk_drag_drop_finished() the operation result.
* gtk/gtknotebook.c (gtk_notebook_drag_failed): new function.
(gtk_notebook_drag_data_get): do not call window creation hook here.
(gtk_notebook_init): do not set "application/x-rootwindow-drop"
target, instead connect to "drag-failed".
(gtk_notebook_draw_focus): fix potential crasher if cur_page is NULL.
Diffstat (limited to 'gtk/gtkenums.h')
-rw-r--r-- | gtk/gtkenums.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h index 85bfd38f82..a3a5e068ce 100644 --- a/gtk/gtkenums.h +++ b/gtk/gtkenums.h @@ -514,6 +514,15 @@ typedef enum { GTK_TREE_VIEW_GRID_LINES_BOTH } GtkTreeViewGridLines; +typedef enum { + GTK_DRAG_RESULT_SUCCESS, + GTK_DRAG_RESULT_NO_TARGET, + GTK_DRAG_RESULT_USER_CANCELLED, + GTK_DRAG_RESULT_TIMEOUT_EXPIRED, + GTK_DRAG_RESULT_GRAB_BROKEN, + GTK_DRAG_RESULT_ERROR +} GtkDragResult; + G_END_DECLS #endif /* __GTK_ENUMS_H__ */ |