PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void process_single_uri ( char *  uri)
static

Definition at line 1976 of file shp2pgsql-gui.c.

References _, add_loader_file_config_to_list(), create_new_file_config(), and pgui_logf().

Referenced by pgui_action_handle_file_drop().

1977 {
1978  SHPLOADERCONFIG *loader_file_config;
1979  char *filename = NULL;
1980  char *hostname;
1981  GError *error = NULL;
1982 
1983  if (uri == NULL)
1984  {
1985  pgui_logf(_("Unable to process drag URI."));
1986  return;
1987  }
1988 
1989  filename = g_filename_from_uri(uri, &hostname, &error);
1990  g_free(uri);
1991 
1992  if (filename == NULL)
1993  {
1994  pgui_logf(_("Unable to process filename: %s\n"), error->message);
1995  g_error_free(error);
1996  return;
1997  }
1998 
1999  /* Create a new row in the listview */
2000  loader_file_config = create_new_file_config(filename);
2001  add_loader_file_config_to_list(loader_file_config);
2002 
2003  g_free(filename);
2004  g_free(hostname);
2005 
2006 }
#define _(String)
Definition: shpcommon.h:23
static void pgui_logf(const char *fmt,...)
static SHPLOADERCONFIG * create_new_file_config(const char *filename)
static void add_loader_file_config_to_list(SHPLOADERCONFIG *loader_file_config)

Here is the call graph for this function:

Here is the caller graph for this function: