mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 16:51:10 +00:00
examples: fix compilation of gl fxtest example on win32 with Gtk+ 3.0
https://bugzilla.gnome.org/show_bug.cgi?id=733063
This commit is contained in:
parent
8d5217141a
commit
1533fc7e2d
1 changed files with 0 additions and 5 deletions
|
@ -141,10 +141,6 @@ on_drag_data_received (GtkWidget * widget,
|
||||||
GtkSelectionData * seldata, guint inf, guint time, gpointer data)
|
GtkSelectionData * seldata, guint inf, guint time, gpointer data)
|
||||||
{
|
{
|
||||||
SourceData *userdata = g_new0 (SourceData, 1);
|
SourceData *userdata = g_new0 (SourceData, 1);
|
||||||
#ifdef G_OS_WIN32
|
|
||||||
gchar *filename =
|
|
||||||
g_filename_from_uri ((const gchar *) seldata->data, NULL, NULL);
|
|
||||||
#else
|
|
||||||
GdkPixbufFormat *format;
|
GdkPixbufFormat *format;
|
||||||
gchar **uris = gtk_selection_data_get_uris (seldata);
|
gchar **uris = gtk_selection_data_get_uris (seldata);
|
||||||
gchar *filename = NULL;
|
gchar *filename = NULL;
|
||||||
|
@ -156,7 +152,6 @@ on_drag_data_received (GtkWidget * widget,
|
||||||
g_return_if_fail (format);
|
g_return_if_fail (format);
|
||||||
g_print ("received %s image: %s\n", filename,
|
g_print ("received %s image: %s\n", filename,
|
||||||
gdk_pixbuf_format_get_name (format));
|
gdk_pixbuf_format_get_name (format));
|
||||||
#endif
|
|
||||||
|
|
||||||
userdata->nick = (gchar *) "location";
|
userdata->nick = (gchar *) "location";
|
||||||
userdata->value = g_strdup (filename);
|
userdata->value = g_strdup (filename);
|
||||||
|
|
Loading…
Reference in a new issue