Commit dfba90fe authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

changed "svg_data" from guchar* to gchar*, cleaned up debugging output.

2003-12-21  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdnd.[ch]: changed "svg_data" from guchar* to
	gchar*, cleaned up debugging output.
parent 6614f8a9
2003-12-21 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpdnd.[ch]: changed "svg_data" from guchar* to
gchar*, cleaned up debugging output.
2003-12-21 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpdialogfactory.c: some cleanup while hunting
......@@ -643,6 +643,8 @@ gimp_dnd_data_drag_handle (GtkWidget *widget,
gpointer get_data_data = NULL;
GimpDndType data_type;
g_print ("\ngimp_dnd_data_drag_handle(%d)\n", info);
for (data_type = GIMP_DND_TYPE_NONE + 1;
data_type <= GIMP_DND_TYPE_LAST;
data_type++)
......@@ -703,6 +705,8 @@ gimp_dnd_data_drop_handle (GtkWidget *widget,
{
GimpDndType data_type;
g_print ("\ngimp_dnd_data_drop_handle(%d)\n", info);
if (selection_data->length <= 0)
{
gtk_drag_finish (context, FALSE, FALSE, time);
......@@ -1417,8 +1421,8 @@ gimp_dnd_get_svg_data (GtkWidget *widget,
gint *format,
gint *length)
{
guchar *svg_data;
gint svg_data_length;
gchar *svg_data;
gint svg_data_length;
svg_data = (* (GimpDndDragSvgFunc) get_svg_func) (widget, &svg_data_length,
get_svg_data);
......@@ -1426,7 +1430,7 @@ gimp_dnd_get_svg_data (GtkWidget *widget,
*format = 8;
*length = svg_data_length;
return svg_data;
return (guchar *) svg_data;
}
static gboolean
......@@ -1443,7 +1447,8 @@ gimp_dnd_set_svg_data (GtkWidget *widget,
return FALSE;
}
(* (GimpDndDropSvgFunc) set_svg_func) (widget, vals, length, set_svg_data);
(* (GimpDndDropSvgFunc) set_svg_func) (widget, (gchar *) vals, length,
set_svg_data);
return TRUE;
}
......@@ -1922,8 +1927,6 @@ gimp_dnd_set_brush_data (GtkWidget *widget,
name = (gchar *) vals;
g_print ("gimp_dnd_set_brush_data() got >>%s<<\n", name);
if (strcmp (name, "Standard") == 0)
brush = GIMP_BRUSH (gimp_brush_get_standard ());
else
......
......@@ -168,13 +168,13 @@ void gimp_dnd_color_dest_remove (GtkWidget *widget);
/* svg dnd functions */
typedef guchar * (* GimpDndDragSvgFunc) (GtkWidget *widget,
gint *svg_data_len,
gpointer data);
typedef void (* GimpDndDropSvgFunc) (GtkWidget *widget,
const guchar *svg_data,
gint svg_data_len,
gpointer data);
typedef gchar * (* GimpDndDragSvgFunc) (GtkWidget *widget,
gint *svg_data_len,
gpointer data);
typedef void (* GimpDndDropSvgFunc) (GtkWidget *widget,
const gchar *svg_data,
gint svg_data_len,
gpointer data);
void gimp_dnd_svg_source_add (GtkWidget *widget,
GimpDndDragSvgFunc get_svg_func,
......
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