gdkselection-win32.c File Reference

#include "config.h"
#include <string.h>
#include <gdk/gdk.h>
#include "gdkwin32.h"

Go to the source code of this file.

Classes

struct  GdkSelProp

Functions

void gdk_win32_selection_init (void)
void gdk_sel_prop_store (GdkWindow *owner, GdkAtom type, gint format, guchar *data, gint length)
gint gdk_selection_owner_set (GdkWindow *owner, GdkAtom selection, guint32 time, gint send_event)
GdkWindowgdk_selection_owner_get (GdkAtom selection)
void gdk_selection_convert (GdkWindow *requestor, GdkAtom selection, GdkAtom target, guint32 time)
gint gdk_selection_property_get (GdkWindow *requestor, guchar **data, GdkAtom *ret_type, gint *ret_format)
void gdk_selection_property_delete (GdkWindow *window)
void gdk_selection_send_notify (guint32 requestor, GdkAtom selection, GdkAtom target, GdkAtom property, guint32 time)
gint gdk_text_property_to_text_list (GdkAtom encoding, gint format, const guchar *text, gint length, gchar ***list)
void gdk_free_text_list (gchar **list)
gint gdk_string_to_compound_text (const gchar *str, GdkAtom *encoding, gint *format, guchar **ctext, gint *length)
void gdk_free_compound_text (guchar *ctext)

Variables

static GHashTablesel_prop_table = NULL


Function Documentation

void gdk_free_compound_text ( guchar ctext  ) 

Definition at line 371 of file gdkselection-win32.c.

References g_warning().

void gdk_free_text_list ( gchar **  list  ) 

Definition at line 354 of file gdkselection-win32.c.

References g_return_if_fail, and NULL.

void gdk_sel_prop_store ( GdkWindow owner,
GdkAtom  type,
gint  format,
guchar data,
gint  length 
)

Definition at line 54 of file gdkselection-win32.c.

References GdkSelProp::data, GdkSelProp::format, g_free(), g_hash_table_insert(), g_hash_table_lookup(), g_hash_table_remove(), g_new, GDK_DRAWABLE_XID, GdkSelProp::length, NULL, sel_prop_table, and GdkSelProp::type.

Referenced by gdk_dropfiles_filter(), and gdk_selection_convert().

void gdk_selection_convert ( GdkWindow requestor,
GdkAtom  selection,
GdkAtom  target,
guint32  time 
)

Definition at line 157 of file gdkselection-win32.c.

References GdkSelProp::data, data, GdkSelProp::format, g_free(), g_hash_table_lookup(), g_hash_table_remove(), g_malloc(), g_print(), g_return_if_fail, g_warning(), gchar, gdk_atom_name(), gdk_clipboard_atom, GDK_DRAWABLE_DESTROYED, GDK_DRAWABLE_XID, GDK_NOTE, gdk_parent_root, gdk_sel_prop_store(), gdk_selection_notify_msg, GDK_TARGET_STRING, gdk_win32_dropfiles_atom, i, GdkSelProp::length, length, NULL, p, ptr, sel_prop_table, GdkSelProp::type, and WIN32_API_FAILED.

Referenced by TGWin32::ConvertPrimarySelection().

GdkWindow* gdk_selection_owner_get ( GdkAtom  selection  ) 

Definition at line 124 of file gdkselection-win32.c.

References g_free(), g_print(), gchar, gdk_atom_name(), gdk_clipboard_atom, GDK_DRAWABLE_XID, GDK_NOTE, gdk_window_lookup, and NULL.

Referenced by TGWin32::GetPrimarySelectionOwner().

gint gdk_selection_owner_set ( GdkWindow owner,
GdkAtom  selection,
guint32  time,
gint  send_event 
)

Definition at line 73 of file gdkselection-win32.c.

References FALSE, g_free(), g_print(), gchar, gdk_atom_name(), gdk_clipboard_atom, GDK_DRAWABLE_XID, GDK_NOTE, gdk_selection_request_msg, NULL, TRUE, and WIN32_API_FAILED.

void gdk_selection_property_delete ( GdkWindow window  ) 

Definition at line 293 of file gdkselection-win32.c.

References GdkSelProp::data, g_free(), g_hash_table_lookup(), g_hash_table_remove(), g_print(), g_warning(), GDK_DRAWABLE_XID, GDK_NOTE, NULL, and sel_prop_table.

Referenced by gdk_property_delete().

gint gdk_selection_property_get ( GdkWindow requestor,
guchar **  data,
GdkAtom ret_type,
gint ret_format 
)

Definition at line 258 of file gdkselection-win32.c.

References GdkSelProp::data, GdkSelProp::format, g_hash_table_lookup(), g_malloc(), g_print(), g_return_val_if_fail, GDK_DRAWABLE_DESTROYED, GDK_DRAWABLE_XID, GDK_IS_WINDOW, GDK_NOTE, GdkSelProp::length, memmove, NULL, sel_prop_table, and GdkSelProp::type.

Referenced by TGWin32::GetPasteBuffer().

void gdk_selection_send_notify ( guint32  requestor,
GdkAtom  selection,
GdkAtom  target,
GdkAtom  property,
guint32  time 
)

Definition at line 309 of file gdkselection-win32.c.

References g_free(), g_print(), gchar, gdk_atom_name(), GDK_NOTE, and gdk_selection_clear_msg.

gint gdk_string_to_compound_text ( const gchar str,
GdkAtom encoding,
gint format,
guchar **  ctext,
gint length 
)

Definition at line 362 of file gdkselection-win32.c.

References g_warning().

gint gdk_text_property_to_text_list ( GdkAtom  encoding,
gint  format,
const guchar text,
gint  length,
gchar ***  list 
)

Definition at line 343 of file gdkselection-win32.c.

References g_print(), and GDK_NOTE.

void gdk_win32_selection_init ( void   ) 

Definition at line 47 of file gdkselection-win32.c.

References g_hash_table_new(), g_int_equal(), g_int_hash(), NULL, and sel_prop_table.

Referenced by _gdk_windowing_init_check().


Variable Documentation

GHashTable* sel_prop_table = NULL [static]

Definition at line 45 of file gdkselection-win32.c.

Referenced by gdk_sel_prop_store(), gdk_selection_convert(), gdk_selection_property_delete(), gdk_selection_property_get(), and gdk_win32_selection_init().


Generated on Tue Jul 5 15:58:42 2011 for ROOT_528-00b_version by  doxygen 1.5.1