Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

drag.c File Reference


Detailed Description

Drag support - no dropping, just dragging.

Author:
Christian Biere
Date:
2007

#include "gui.h"
#include "drag.h"
#include "lib/override.h"

Data Structures

struct  drag_context

Defines

#define object_ref(obj)   gtk_object_ref(GTK_OBJECT(obj))
#define object_unref(obj)   gtk_object_unref(GTK_OBJECT(obj))

Functions

drag_contextdrag_alloc (void)
 Allocates a new drag context, to be freed with drag_free().
void drag_free (struct drag_context **ptr)
 Frees a drag context.
void selection_set_text (GtkSelectionData *data, const char *text)
void drag_begin (GtkWidget *widget, GdkDragContext *unused_drag_ctx, void *udata)
void drag_data_get (GtkWidget *widget, GdkDragContext *unused_drag_ctx, GtkSelectionData *data, unsigned unused_info, unsigned unused_stamp, void *udata)
void drag_end (GtkWidget *widget, GdkDragContext *unused_drag_ctx, void *udata)
void destroy (GtkObject *widget, void *udata)
void drag_attach (GtkWidget *widget, drag_get_text_cb callback)
 Attaches a drag context to a widget, so that user can drag data from the widget as text.


Define Documentation

#define object_ref obj   )     gtk_object_ref(GTK_OBJECT(obj))
 

#define object_unref obj   )     gtk_object_unref(GTK_OBJECT(obj))
 


Function Documentation

void destroy GtkObject *  widget,
void *  udata
[static]
 

struct drag_context* drag_alloc void   )  [static]
 

Allocates a new drag context, to be freed with drag_free().

Returns:
a drag context.

void drag_attach GtkWidget *  widget,
drag_get_text_cb  callback
 

Attaches a drag context to a widget, so that user can drag data from the widget as text.

The context can be attached to multiple widgets.

void drag_begin GtkWidget *  widget,
GdkDragContext *  unused_drag_ctx,
void *  udata
[static]
 

void drag_data_get GtkWidget *  widget,
GdkDragContext *  unused_drag_ctx,
GtkSelectionData *  data,
unsigned  unused_info,
unsigned  unused_stamp,
void *  udata
[static]
 

void drag_end GtkWidget *  widget,
GdkDragContext *  unused_drag_ctx,
void *  udata
[static]
 

void drag_free struct drag_context **  ptr  )  [static]
 

Frees a drag context.

void selection_set_text GtkSelectionData *  data,
const char *  text
[inline, static]
 


Generated on Sat Jun 30 17:53:26 2007 for gtk-gnutella by  doxygen 1.3.9.1