(trunk gtk) general cleanup to make function's naming scheme and API more consistent. This is only a fraction of what the GTK+ client's codebase needs, unfortunately.

This commit is contained in:
Charles Kerr
2010-12-21 19:20:58 +00:00
parent 0372797e6f
commit 5eafe91824
36 changed files with 239 additions and 285 deletions

View File

@@ -312,9 +312,7 @@ getWindow( GtkWidget * w )
}
void
addTorrentErrorDialog( GtkWidget * child,
int err,
const char * filename )
gtr_add_torrent_error_dialog( GtkWidget * child, int err, const char * file )
{
char * secondary;
const char * fmt;
@@ -327,7 +325,7 @@ addTorrentErrorDialog( GtkWidget * child,
case TR_PARSE_DUPLICATE: fmt = _( "The torrent file \"%s\" is already in use." ); break;
default: fmt = _( "The torrent file \"%s\" encountered an unknown error." ); break;
}
secondary = g_strdup_printf( fmt, filename );
secondary = g_strdup_printf( fmt, file );
w = gtk_message_dialog_new( win,
GTK_DIALOG_DESTROY_WITH_PARENT,