1. 23 Jul, 2014 1 commit
  2. 02 Jul, 2014 1 commit
  3. 06 Feb, 2014 1 commit
    • Allison Karlitskaya's avatar
      GApplication: parse command line options · 0e671286
      Allison Karlitskaya authored
      Add support for parsing command line options with GApplication.
      You can add GOptionGroup and GOptionEntry using two new APIs:
      g_application_add_option_group() and
      Also add a "handle-local-options" signal that allows handling of
      commandline arguments in the local process without having to override
      As a special feature, you can have a %NULL @arg_data in a GOptionEntry
      which will cause the argument to be stored in a GVariantDict.  This
      dictionary is available for inspection and modification by the
      "handle-local-options" signal and can be forwarded to the primary
      instance in cases of command line invocation (where it can be fetched
      using g_application_command_line_get_options()).
  4. 31 Jan, 2014 1 commit
  5. 07 Nov, 2013 1 commit
  6. 26 Oct, 2013 2 commits
  7. 17 Oct, 2013 2 commits
    • Allison Karlitskaya's avatar
    • Cosimo Cecchi's avatar
      gapplication: don't rely on cmdline being finalized immediately · c5748328
      Cosimo Cecchi authored
      The GApplicationCommandLine DBus implementation currently calls
      g_dbus_method_invocation_return_value() in its finalize() implementation
      only, relying on the object being destroyed after g_object_unref() is
      called on it inside g_application_impl_method_call().
      While this is usually fine for C applications, when overriding the
      command_line vfunc from language bindings, the binding might add extra
      references to the object, which might not be released immediately - e.g.
      because they're garbage collected, or possibly even leaked. The same
      scenario could happen in a C application that decides to keep a
      reference to the passed-in GApplicationCommandLine object.
      To ensure the CommandLine DBus method always gets a reply after the
      invocation of command_line in the primary instance, explicitly send the
      message back before dropping our reference to the object.
  8. 14 Jul, 2013 1 commit
  9. 06 Jun, 2013 1 commit
  10. 05 Jun, 2013 1 commit
  11. 21 May, 2013 1 commit
    • Dan Winship's avatar
      Use 'dumb quotes' rather than `really dumb quotes' · 4b94c083
      Dan Winship authored
      Back in the far-off twentieth century, it was normal on unix
      workstations for U+0060 GRAVE ACCENT to be drawn as "‛" and for U+0027
      APOSTROPHE to be drawn as "’". This led to the convention of using
      them as poor-man's ‛smart quotes’ in ASCII-only text.
      However, "'" is now universally drawn as a vertical line, and "`" at a
      45-degree angle, making them an `odd couple' when used together.
      Unfortunately, there are lots of very old strings in glib, and also
      lots of new strings in which people have kept up the old tradition,
      perhaps entirely unaware that it used to not look stupid.
      Fix this by just using 'dumb quotes' everywhere.
  12. 29 Apr, 2013 1 commit
  13. 04 Apr, 2013 1 commit
    • Cosimo Cecchi's avatar
      application: introduce methods to mark the application as busy · db325cd6
      Cosimo Cecchi authored
      This feature is intended for clients that want to signal a desktop shell
      their busy state, for instance because a long-running operation is
      The API works in a similar way to g_application_hold and
      g_application_release: applications can call g_application_mark_busy()
      to increase a counter that will keep the application marked as busy
      until the counter reaches zero again.
      The busy state is exported read-only on the org.gtk.Application interface
      for clients to use.
  14. 29 Jan, 2013 1 commit
    • Colin Walters's avatar
      Add g_close(), use it · f398bec5
      Colin Walters authored
      There are two benefits to this:
      1) We can centralize any operating system specific knowledge of
         close-vs-EINTR handling.  For example, while on Linux we should never
         retry, if someone cared enough later about HP-UX, they could come by
         and change this one spot.
      2) For places that do care about the return value and want to provide
         the caller with a GError, this function makes it convenient to do so.
      Note that gspawn.c had an incorrect EINTR loop-retry around close().
  15. 27 Dec, 2012 1 commit
  16. 06 Dec, 2012 1 commit
  17. 02 Nov, 2012 1 commit
  18. 29 May, 2012 1 commit
    • Christian Persch's avatar
      application: Add dbus register/unregister hooks · 4979c1d0
      Christian Persch authored
      When the application is using its D-Bus backend, it is useful to be able
      to export extra D-Bus objects at the right time, i.e. *before* the application
      tries to own the bus name. This is accomplished here by adding a hook
      in GApplicationClass for this; and a corresponding hook that will be called
      on unregistration to undo whatever the register hook did.
      Bug #675509.
  19. 24 May, 2012 1 commit
  20. 30 Apr, 2012 2 commits
  21. 03 Mar, 2012 1 commit
    • Allison Karlitskaya's avatar
      GApplication: fix name unregister logic · a5caa564
      Allison Karlitskaya authored
      We were attempting to unregister our ownership of our D-Bus name even in
      the case that we were non-unique (ie: we didn't actually own the name).
      Rework the logic a bit to prevent that: for non-unique, we leave
      impl->bus_name as NULL and we only register/unregister if it is
  22. 09 Feb, 2012 1 commit
  23. 18 Jan, 2012 1 commit
  24. 20 Dec, 2011 1 commit
  25. 19 Dec, 2011 1 commit
  26. 17 Dec, 2011 3 commits
  27. 08 Dec, 2011 9 commits