comparison src/gtkprefs.c @ 11137:096020ae09a9

[gaim-migrate @ 13201] Some more deworming. I mean, dewarning. I also realized that lots of glib uses guchar* instead of guint* for passing around bits of binary data, so I changed some stuff in util.c that I'd already changed. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 21 Jul 2005 05:49:48 +0000
parents e25575a59f01
children a511b77a368b
comparison
equal deleted inserted replaced
11136:6270b6ad69a2 11137:096020ae09a9
583 583
584 g_unlink(path); 584 g_unlink(path);
585 g_free(path); 585 g_free(path);
586 } 586 }
587 587
588 static void theme_dnd_recv(GtkWidget *widget, GdkDragContext *dc, guint x, guint y, GtkSelectionData *sd, 588 static void theme_dnd_recv(GtkWidget *widget, GdkDragContext *dc, guint x, guint y, GtkSelectionData *sd,
589 guint info, guint t, gpointer data) { 589 guint info, guint t, gpointer data) {
590 gchar *name = sd->data; 590 gchar *name = (gchar *)sd->data;
591 591
592 if ((sd->length >= 0) && (sd->format == 8)) { 592 if ((sd->length >= 0) && (sd->format == 8)) {
593 /* Well, it looks like the drag event was cool. 593 /* Well, it looks like the drag event was cool.
594 * Let's do something with it */ 594 * Let's do something with it */
595 595
596 if (!g_ascii_strncasecmp(name, "file://", 7)) { 596 if (!g_ascii_strncasecmp(name, "file://", 7)) {
597 GError *converr = NULL; 597 GError *converr = NULL;
598 gchar *tmp; 598 gchar *tmp;
599 /* It looks like we're dealing with a local file. Let's 599 /* It looks like we're dealing with a local file. Let's
600 * just untar it in the right place */ 600 * just untar it in the right place */
601 if(!(tmp = g_filename_from_uri(name, NULL, &converr))) { 601 if(!(tmp = g_filename_from_uri(name, NULL, &converr))) {
602 gaim_debug(GAIM_DEBUG_ERROR, "theme dnd", "%s\n", 602 gaim_debug(GAIM_DEBUG_ERROR, "theme dnd", "%s\n",
603 (converr ? converr->message : 603 (converr ? converr->message :
604 "g_filename_from_uri error")); 604 "g_filename_from_uri error"));