~ubuntu-branches/debian/jessie/glib2.0/jessie

« back to all changes in this revision

Viewing changes to gio/gapplication.c

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-09-23 10:12:15 UTC
  • mto: This revision was merged to the branch mainline in revision 120.
  • Revision ID: package-import@ubuntu.com-20140923101215-kg4894xy8gz996q1
Tags: upstream-2.42.0
ImportĀ upstreamĀ versionĀ 2.42.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
698
698
g_application_add_main_option (GApplication *application,
699
699
                               const char   *long_name,
700
700
                               char          short_name,
701
 
                               gint          flags,
 
701
                               GOptionFlags  flags,
702
702
                               GOptionArg    arg,
703
703
                               const char   *description,
704
704
                               const char   *arg_description)
1415
1415
   * decide to perform certain actions, including direct local handling
1416
1416
   * (which may be useful for options like --version).
1417
1417
   *
1418
 
   * If the options have been "handled" then a non-negative value should
1419
 
   * be returned.   In this case, the return value is the exit status: 0
1420
 
   * for success and a positive value for failure.  -1 means to continue
1421
 
   * normal processing.
1422
 
   *
1423
1418
   * In the event that the application is marked
1424
1419
   * %G_APPLICATION_HANDLES_COMMAND_LINE the "normal processing" will
1425
1420
   * send the @option dictionary to the primary instance where it can be
1450
1445
   * capabilities than what is provided here, but this should not
1451
1446
   * normally be required.
1452
1447
   *
 
1448
   * Returns: an exit code. If you have handled your options and want
 
1449
   * to exit the process, return a non-negative option, 0 for success,
 
1450
   * and a positive value for failure. To continue, return -1 to let
 
1451
   * the default option processing continue.
 
1452
   *
1453
1453
   * Since: 2.40
1454
1454
   **/
1455
1455
  g_application_signals[SIGNAL_HANDLE_LOCAL_OPTIONS] =
1722
1722
 */
1723
1723
void
1724
1724
g_application_set_resource_base_path (GApplication *application,
1725
 
                                 const gchar  *resource_path)
 
1725
                                      const gchar  *resource_path)
1726
1726
{
1727
1727
  g_return_if_fail (G_IS_APPLICATION (application));
1728
1728
  g_return_if_fail (resource_path == NULL || g_str_has_prefix (resource_path, "/"));