gschem

x_misc.c File Reference

#include <config.h>
#include "gschem.h"
Include dependency graph for x_misc.c:

Go to the source code of this file.

Functions

gboolean x_show_uri (GSCHEM_TOPLEVEL *w_current, const gchar *uri, GError **error)
 Launch default application for a URI.

Function Documentation

gboolean x_show_uri ( GSCHEM_TOPLEVEL w_current,
const gchar *  uri,
GError **  error 
)
Function Description
Launches the default application associated with uri on the host platform.

Depending on the way gEDA was configured, this may occur by one of the following three methods:

  1. Calling gtk_show_uri() to use the GIO library (default on Linux)
  2. Calling the ShellExecute() Windows API call (default on Windows)
  3. Running an appropriate external tool.
Parameters:
w_currentCurrent GSCHEM_TOPLEVEL structure.
uriURI to launch viewer for.
errorLocation to return error information.
Returns:
TRUE on success, FALSE on failure.

Definition at line 114 of file x_misc.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines