forked from AuroraMiddleware/gtk
Update all callers
This commit is contained in:
parent
233ec1a5d6
commit
5206a92522
@ -177,14 +177,11 @@ got_texture (GObject *source,
|
||||
|
||||
static gboolean
|
||||
drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
GdkDrop *drop;
|
||||
|
||||
drop = gtk_drop_target_get_drop (dest);
|
||||
|
||||
if (gdk_drop_has_value (drop, GDK_TYPE_TEXTURE))
|
||||
{
|
||||
gdk_drop_read_value_async (drop, GDK_TYPE_TEXTURE, G_PRIORITY_DEFAULT, NULL, got_texture, widget);
|
||||
|
@ -332,12 +332,15 @@ static gboolean gtk_calendar_query_tooltip (GtkWidget *widget,
|
||||
GtkTooltip *tooltip);
|
||||
|
||||
static gboolean gtk_calendar_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkCalendar *calendar);
|
||||
static void gtk_calendar_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkCalendar *calendar);
|
||||
static gboolean gtk_calendar_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkCalendar *calendar);
|
||||
@ -2971,6 +2974,7 @@ get_status_pending (GdkDrop *drop)
|
||||
|
||||
static void
|
||||
gtk_calendar_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkCalendar *calendar)
|
||||
{
|
||||
}
|
||||
@ -3043,11 +3047,11 @@ got_text (GObject *source,
|
||||
|
||||
static gboolean
|
||||
gtk_calendar_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkCalendar *calendar)
|
||||
{
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
GdkAtom target;
|
||||
|
||||
target = gtk_drop_target_find_mimetype (dest);
|
||||
@ -3064,11 +3068,11 @@ gtk_calendar_drag_motion (GtkDropTarget *dest,
|
||||
|
||||
static gboolean
|
||||
gtk_calendar_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkCalendar *calendar)
|
||||
{
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
GdkAtom target;
|
||||
|
||||
target = gtk_drop_target_find_mimetype (dest);
|
||||
|
@ -252,12 +252,11 @@ got_color (GObject *source,
|
||||
|
||||
static gboolean
|
||||
gtk_color_button_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkColorButton *button)
|
||||
{
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
|
||||
if (gdk_drop_has_value (drop, GDK_TYPE_RGBA))
|
||||
{
|
||||
gdk_drop_read_value_async (drop, GDK_TYPE_RGBA, G_PRIORITY_DEFAULT, NULL, got_color, button);
|
||||
|
@ -154,12 +154,11 @@ got_color (GObject *source,
|
||||
|
||||
static gboolean
|
||||
swatch_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkColorSwatch *swatch)
|
||||
{
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
|
||||
if (gdk_drop_has_value (drop, GDK_TYPE_RGBA))
|
||||
{
|
||||
gdk_drop_read_value_async (drop, GDK_TYPE_RGBA, G_PRIORITY_DEFAULT, NULL, got_color, swatch);
|
||||
|
@ -193,10 +193,12 @@ static void gtk_expander_size_allocate (GtkWidget *widget,
|
||||
static gboolean gtk_expander_focus (GtkWidget *widget,
|
||||
GtkDirectionType direction);
|
||||
static gboolean gtk_expander_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkExpander *expander);
|
||||
static void gtk_expander_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkExpander *expander);
|
||||
|
||||
static void gtk_expander_add (GtkContainer *container,
|
||||
@ -548,6 +550,7 @@ expand_timeout (gpointer data)
|
||||
|
||||
static gboolean
|
||||
gtk_expander_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkExpander *expander)
|
||||
@ -565,6 +568,7 @@ gtk_expander_drag_motion (GtkDropTarget *dest,
|
||||
|
||||
static void
|
||||
gtk_expander_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkExpander *expander)
|
||||
{
|
||||
GtkExpanderPrivate *priv = gtk_expander_get_instance_private (expander);
|
||||
|
@ -268,6 +268,7 @@ static void gtk_file_chooser_button_finalize (GObject *ob
|
||||
/* GtkWidget Functions */
|
||||
static void gtk_file_chooser_button_destroy (GtkWidget *widget);
|
||||
static gboolean gtk_file_chooser_button_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkWidget *widget);
|
||||
@ -1215,12 +1216,11 @@ got_text (GObject *source,
|
||||
|
||||
static gboolean
|
||||
gtk_file_chooser_button_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkWidget *button)
|
||||
{
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
|
||||
if (gdk_drop_has_value (drop, G_TYPE_FILE))
|
||||
{
|
||||
gdk_drop_read_value_async (drop, G_TYPE_FILE, G_PRIORITY_DEFAULT, NULL, got_file, button);
|
||||
|
@ -2031,6 +2031,7 @@ file_list_drag_data_received_cb (GObject *source,
|
||||
/* Don't do anything with the drag_drop signal */
|
||||
static gboolean
|
||||
file_list_drag_drop_cb (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkFileChooserWidget *impl)
|
||||
@ -2046,6 +2047,7 @@ file_list_drag_drop_cb (GtkDropTarget *dest,
|
||||
dropping the dragged item onto a tree item */
|
||||
static gboolean
|
||||
file_list_drag_motion_cb (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkFileChooserWidget *impl)
|
||||
|
@ -290,12 +290,15 @@ static GBytes * gtk_icon_view_drag_data_get (const char *mime_type,
|
||||
|
||||
/* Target side drag signals */
|
||||
static void gtk_icon_view_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkIconView *icon_view);
|
||||
static gboolean gtk_icon_view_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkIconView *icon_view);
|
||||
static gboolean gtk_icon_view_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkIconView *icon_view);
|
||||
@ -6165,6 +6168,7 @@ gtk_icon_view_dnd_finished_cb (GdkDrag *drag,
|
||||
/* Target side drag signals */
|
||||
static void
|
||||
gtk_icon_view_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkIconView *icon_view)
|
||||
{
|
||||
/* unset any highlight row */
|
||||
@ -6177,11 +6181,11 @@ gtk_icon_view_drag_leave (GtkDropTarget *dest,
|
||||
|
||||
static gboolean
|
||||
gtk_icon_view_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkIconView *icon_view)
|
||||
{
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
GtkTreePath *path = NULL;
|
||||
GtkIconViewDropPosition pos;
|
||||
GdkDragAction suggested_action = 0;
|
||||
@ -6235,11 +6239,11 @@ gtk_icon_view_drag_motion (GtkDropTarget *dest,
|
||||
|
||||
static gboolean
|
||||
gtk_icon_view_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkIconView *icon_view)
|
||||
{
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
GtkTreePath *path;
|
||||
GdkDragAction suggested_action = 0;
|
||||
GdkAtom target = NULL;
|
||||
|
@ -704,10 +704,12 @@ static void gtk_notebook_drag_cancel_cb (GdkDrag *drag,
|
||||
GdkDragCancelReason reason,
|
||||
GtkWidget *widget);
|
||||
static gboolean gtk_notebook_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y);
|
||||
static void gtk_notebook_drag_leave (GtkDropTarget *dest);
|
||||
static gboolean gtk_notebook_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y);
|
||||
static GBytes * gtk_notebook_drag_data_get (const char *mime_type,
|
||||
@ -3188,12 +3190,12 @@ gtk_notebook_switch_tab_timeout (gpointer data)
|
||||
|
||||
static gboolean
|
||||
gtk_notebook_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y)
|
||||
{
|
||||
GtkWidget *tabs = gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (dest));
|
||||
GtkWidget *widget = gtk_widget_get_ancestor (tabs, GTK_TYPE_NOTEBOOK);
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
GtkNotebook *notebook = GTK_NOTEBOOK (widget);
|
||||
GtkNotebookPrivate *priv = notebook->priv;
|
||||
graphene_rect_t position;
|
||||
@ -3331,13 +3333,13 @@ got_page (GObject *source,
|
||||
|
||||
static gboolean
|
||||
gtk_notebook_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y)
|
||||
{
|
||||
GtkWidget *tabs = gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (dest));
|
||||
GtkWidget *widget = gtk_widget_get_ancestor (tabs, GTK_TYPE_NOTEBOOK);
|
||||
GtkNotebook *notebook = GTK_NOTEBOOK (widget);
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
GdkDrag *drag = gdk_drop_get_drag (drop);
|
||||
GtkWidget *source_widget;
|
||||
GdkAtom target, tab_target;
|
||||
|
@ -1725,12 +1725,12 @@ create_placeholder_row (GtkPlacesSidebar *sidebar)
|
||||
|
||||
static gboolean
|
||||
drag_motion_callback (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
gint x,
|
||||
gint y,
|
||||
gpointer user_data)
|
||||
{
|
||||
GtkPlacesSidebar *sidebar = GTK_PLACES_SIDEBAR (user_data);
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
gint action;
|
||||
GtkListBoxRow *row;
|
||||
GtkPlacesSidebarPlaceType place_type;
|
||||
@ -2084,10 +2084,10 @@ dnd_finished_cb (GdkDrag *drag,
|
||||
*/
|
||||
static void
|
||||
drag_leave_callback (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
gpointer user_data)
|
||||
{
|
||||
GtkPlacesSidebar *sidebar = GTK_PLACES_SIDEBAR (user_data);
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
|
||||
if (sidebar->drop_state != DROP_STATE_NEW_BOOKMARK_ARMED_PERMANENT)
|
||||
{
|
||||
@ -2103,6 +2103,7 @@ drag_leave_callback (GtkDropTarget *dest,
|
||||
|
||||
static gboolean
|
||||
drag_drop_callback (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
gpointer user_data)
|
||||
|
@ -93,8 +93,10 @@ enum {
|
||||
};
|
||||
|
||||
static void gtk_stack_switcher_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkStackSwitcher *self);
|
||||
static gboolean gtk_stack_switcher_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkStackSwitcher *self);
|
||||
@ -263,6 +265,7 @@ gtk_stack_switcher_switch_timeout (gpointer data)
|
||||
|
||||
static gboolean
|
||||
gtk_stack_switcher_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkStackSwitcher *self)
|
||||
@ -305,6 +308,7 @@ gtk_stack_switcher_drag_motion (GtkDropTarget *dest,
|
||||
|
||||
static void
|
||||
gtk_stack_switcher_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkStackSwitcher *self)
|
||||
{
|
||||
remove_switch_timer (self);
|
||||
|
@ -335,14 +335,17 @@ static void gtk_text_state_flags_changed (GtkWidget *widget,
|
||||
static void gtk_text_root (GtkWidget *widget);
|
||||
|
||||
static gboolean gtk_text_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkText *text);
|
||||
static gboolean gtk_text_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkText *text);
|
||||
static void gtk_text_drag_leave (GtkDropTarget *dest,
|
||||
static void gtk_text_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkText *text);
|
||||
|
||||
|
||||
@ -6124,6 +6127,7 @@ gtk_text_selection_bubble_popup_set (GtkText *self)
|
||||
|
||||
static void
|
||||
gtk_text_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkText *self)
|
||||
{
|
||||
GtkTextPrivate *priv = gtk_text_get_instance_private (self);
|
||||
@ -6207,12 +6211,12 @@ got_text (GObject *source,
|
||||
|
||||
static gboolean
|
||||
gtk_text_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkText *self)
|
||||
{
|
||||
GtkTextPrivate *priv = gtk_text_get_instance_private (self);
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
|
||||
if (priv->editable && gdk_drop_has_value (drop, G_TYPE_STRING))
|
||||
{
|
||||
@ -6227,12 +6231,12 @@ gtk_text_drag_drop (GtkDropTarget *dest,
|
||||
|
||||
static gboolean
|
||||
gtk_text_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkText *self)
|
||||
{
|
||||
GtkTextPrivate *priv = gtk_text_get_instance_private (self);
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
GtkWidget *widget = GTK_WIDGET (self);
|
||||
GdkDragAction suggested_action;
|
||||
int new_position, old_position;
|
||||
|
@ -421,12 +421,15 @@ static GtkTextBuffer* gtk_text_view_create_buffer (GtkTextView *text_view);
|
||||
|
||||
/* Target side drag signals */
|
||||
static void gtk_text_view_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkTextView *text_view);
|
||||
static gboolean gtk_text_view_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkTextView *text_view);
|
||||
static gboolean gtk_text_view_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkTextView *text_view);
|
||||
@ -7722,6 +7725,7 @@ gtk_text_view_start_selection_dnd (GtkTextView *text_view,
|
||||
|
||||
static void
|
||||
gtk_text_view_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkTextView *text_view)
|
||||
{
|
||||
GtkTextViewPrivate *priv = text_view->priv;
|
||||
@ -7738,12 +7742,12 @@ gtk_text_view_drag_leave (GtkDropTarget *dest,
|
||||
|
||||
static gboolean
|
||||
gtk_text_view_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkTextView *text_view)
|
||||
{
|
||||
GtkTextViewPrivate *priv = text_view->priv;
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
GtkTextIter newplace;
|
||||
GtkTextIter start;
|
||||
GtkTextIter end;
|
||||
@ -7882,12 +7886,12 @@ got_text (GObject *source,
|
||||
|
||||
static gboolean
|
||||
gtk_text_view_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkTextView *text_view)
|
||||
{
|
||||
GtkTextViewPrivate *priv = text_view->priv;
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
GtkTextIter drop_point;
|
||||
GtkTextBuffer *buffer = NULL;
|
||||
|
||||
|
@ -693,12 +693,15 @@ static GBytes *gtk_tree_view_drag_data_get (const char *mimetype,
|
||||
|
||||
/* Target side drag signals */
|
||||
static void gtk_tree_view_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkTreeView *tree_view);
|
||||
static gboolean gtk_tree_view_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkTreeView *tree_view);
|
||||
static gboolean gtk_tree_view_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkTreeView *tree_view);
|
||||
@ -7225,6 +7228,7 @@ gtk_tree_view_drag_data_get (const char *mime_type,
|
||||
|
||||
static void
|
||||
gtk_tree_view_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkTreeView *tree_view)
|
||||
{
|
||||
/* unset any highlight row */
|
||||
@ -7242,11 +7246,11 @@ gtk_tree_view_drag_leave (GtkDropTarget *dest,
|
||||
|
||||
static gboolean
|
||||
gtk_tree_view_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkTreeView *tree_view)
|
||||
{
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
gboolean empty;
|
||||
GtkTreePath *path = NULL;
|
||||
GtkTreeViewDropPosition pos;
|
||||
@ -7308,11 +7312,11 @@ gtk_tree_view_drag_motion (GtkDropTarget *dest,
|
||||
|
||||
static gboolean
|
||||
gtk_tree_view_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
GtkTreeView *tree_view)
|
||||
{
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
GtkTreePath *path;
|
||||
GdkDragAction suggested_action = 0;
|
||||
GdkAtom target = NULL;
|
||||
|
@ -441,6 +441,7 @@ popdown_cb (gpointer data)
|
||||
|
||||
gboolean
|
||||
popup_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y)
|
||||
{
|
||||
|
@ -162,12 +162,12 @@ ask_actions (GdkDrop *drop,
|
||||
|
||||
static gboolean
|
||||
image_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
gpointer data)
|
||||
{
|
||||
GtkWidget *image = data;
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
GdkDragAction action = gdk_drop_get_actions (drop);
|
||||
|
||||
g_object_set_data_full (G_OBJECT (image), "drop", g_object_ref (drop), g_object_unref);
|
||||
|
@ -55,6 +55,7 @@ got_row (GObject *src,
|
||||
|
||||
static void
|
||||
drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
gpointer data)
|
||||
|
@ -136,10 +136,9 @@ got_page (GObject *source,
|
||||
|
||||
static gboolean
|
||||
on_button_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
gpointer user_data)
|
||||
{
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
|
||||
gdk_drop_read_async (drop, (const char *[]) { "GTK_NOTEBOOK_TAB", NULL }, G_PRIORITY_DEFAULT, NULL, got_page, NULL);
|
||||
|
||||
gdk_drop_finish (drop, GDK_ACTION_MOVE);
|
||||
|
@ -294,6 +294,7 @@ bold_toggled (GtkToggleToolButton *button)
|
||||
|
||||
static gboolean
|
||||
toolbar_drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
gint x, gint y,
|
||||
GtkWidget *label)
|
||||
{
|
||||
@ -324,11 +325,11 @@ static GtkToolItem *drag_item = NULL;
|
||||
|
||||
static gboolean
|
||||
toolbar_drag_motion (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
gint x,
|
||||
gint y,
|
||||
GtkToolbar *toolbar)
|
||||
{
|
||||
GdkDrop *drop = gtk_drop_target_get_drop (dest);
|
||||
gint index;
|
||||
|
||||
if (!drag_item)
|
||||
@ -348,6 +349,7 @@ toolbar_drag_motion (GtkDropTarget *dest,
|
||||
|
||||
static void
|
||||
toolbar_drag_leave (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
GtkToolbar *toolbar)
|
||||
{
|
||||
if (drag_item)
|
||||
|
@ -109,6 +109,7 @@ got_text (GObject *source,
|
||||
|
||||
static void
|
||||
drag_drop (GtkDropTarget *dest,
|
||||
GdkDrop *drop,
|
||||
int x,
|
||||
int y,
|
||||
gpointer dada)
|
||||
|
Loading…
Reference in New Issue
Block a user