Implement missing functions.
2008-08-10 Richard Hult <richard@imendio.com> * gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_uris), (gtk_clipboard_request_uris): Implement missing functions. svn path=/trunk/; revision=21053
This commit is contained in:
parent
28a069fb11
commit
33ce9f17ba
@ -1,3 +1,8 @@
|
|||||||
|
2008-08-10 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
|
* gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_uris),
|
||||||
|
(gtk_clipboard_request_uris): Implement missing functions.
|
||||||
|
|
||||||
2008-08-09 Sven Herzberg <sven@imendio.com>
|
2008-08-09 Sven Herzberg <sven@imendio.com>
|
||||||
|
|
||||||
Bug 544863 – gtkquartz.h not included in released 2.13.5 package
|
Bug 544863 – gtkquartz.h not included in released 2.13.5 package
|
||||||
|
@ -817,6 +817,18 @@ gtk_clipboard_request_image (GtkClipboard *clipboard,
|
|||||||
g_object_unref (pixbuf);
|
g_object_unref (pixbuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
gtk_clipboard_request_uris (GtkClipboard *clipboard,
|
||||||
|
GtkClipboardURIReceivedFunc callback,
|
||||||
|
gpointer user_data)
|
||||||
|
{
|
||||||
|
gchar **uris = gtk_clipboard_wait_for_uris (clipboard);
|
||||||
|
|
||||||
|
callback (clipboard, uris, user_data);
|
||||||
|
|
||||||
|
g_strfreev (uris);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gtk_clipboard_request_targets:
|
* gtk_clipboard_request_targets:
|
||||||
* @clipboard: a #GtkClipboard
|
* @clipboard: a #GtkClipboard
|
||||||
@ -981,6 +993,25 @@ gtk_clipboard_wait_for_image (GtkClipboard *clipboard)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gchar **
|
||||||
|
gtk_clipboard_wait_for_uris (GtkClipboard *clipboard)
|
||||||
|
{
|
||||||
|
GtkSelectionData *data;
|
||||||
|
|
||||||
|
data = gtk_clipboard_wait_for_contents (clipboard, gdk_atom_intern_static_string ("text/uri-list"));
|
||||||
|
if (data)
|
||||||
|
{
|
||||||
|
gchar **uris;
|
||||||
|
|
||||||
|
uris = gtk_selection_data_get_uris (data);
|
||||||
|
gtk_selection_data_free (data);
|
||||||
|
|
||||||
|
return uris;
|
||||||
|
}
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gtk_clipboard_get_display:
|
* gtk_clipboard_get_display:
|
||||||
* @clipboard: a #GtkClipboard
|
* @clipboard: a #GtkClipboard
|
||||||
|
Loading…
Reference in New Issue
Block a user