Commit 33ce9f17 authored by Richard Hult's avatar Richard Hult Committed by Richard Hult

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
parent 28a069fb
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>
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);
}
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:
* @clipboard: a #GtkClipboard
......@@ -981,6 +993,25 @@ gtk_clipboard_wait_for_image (GtkClipboard *clipboard)
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:
* @clipboard: a #GtkClipboard
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment