summaryrefslogtreecommitdiff
path: root/gio/gapplication.h
Commit message (Collapse)AuthorAgeFilesLines
* gio: Add SPDX license headers automaticallyPhilip Withnall2022-05-181-0/+2
| | | | | | | | | | | | | | Add SPDX license (but not copyright) headers to all files which follow a certain pattern in their existing non-machine-readable header comment. This commit was entirely generated using the command: ``` git ls-files gio/*.[ch] | xargs perl -0777 -pi -e 's/\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/\n \*\n \* SPDX-License-Identifier: LGPL-2.1-or-later\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/igs' ``` Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1415
* GApplication: Add a way to replace a unique instanceMatthias Clasen2018-11-261-1/+2
| | | | | | | | | | | While uniqueness is great, sometimes you want to restart a newer version of the same app. These two flags make that possible. We also add a ::name-lost signal, that is emitted when it happens. The default handler for this signal just calls g_application_quit(), but applications may want to connect and do cleanup or state-saving here.
* Bug-790839 GApplication command line --help enhancementshowetuft2018-01-031-1/+9
| | | | | | | | | | | | | | | In order to enrich information displayed by GApplication command line handling when --help is invoked, 3 new methods are proposed: . g_application_set_option_context_parameter_string . g_application_set_option_context_summary . g_application_set_option_context_description Those methods interact with the GApplication's internal GOptionContext which is created for command line parsing in g_application_parse_command_line. (please refer to the GOptionContext class for more information about option context, parameter string, summary and description.) To illustrate the 3 methods, an example is provided: . gapplication-example-cmdline4.c
* gio/: LGPLv2+ -> LGPLv2.1+Sébastien Wilmet2017-05-291-4/+4
| | | | | | | | | | | | | | | | | Sub-directories inside gio/ already processed in a previous commit: - fam/ - gdbus-2.0/ (which contains only codegen/) - gvdb/ - inotify/ - tests/ - win32/ - xdgmime/ Other sub-directories inside gio/: - completion/: no license headers - kqueue/: not LGPL, BSD-style license https://bugzilla.gnome.org/show_bug.cgi?id=776504
* gapplication: add "is-busy"Lars Uebernickel2015-02-191-0/+2
| | | | | | A property to query the current busy state of an application. https://bugzilla.gnome.org/show_bug.cgi?id=744756
* gapplication: tune busy-bindingLars Uebernickel2015-02-181-0/+5
| | | | | | | | | | g_application_bind_busy_property() had the restriction that only one property can be bound per object, so that NULL could be used to unbind. Even though this is enough for most uses, it is a weird API. Lift that restriction and add an explicit unbind function. https://bugzilla.gnome.org/show_bug.cgi?id=744565
* gapplication: add bind_busy_property()Lars Uebernickel2015-02-161-0/+5
| | | | | | | | | | Balancing g_application_{un,}mark_busy() is non-trivial in some cases. Make it a bit more convenient by allowing to bind multiple boolean properties (from different objects) to the busy state. As long as these properties are true, the application is marked as busy. https://bugzilla.gnome.org/show_bug.cgi?id=744565
* docs: fix up docs issues in gio/Xavier Claessens2015-02-051-5/+0
|
* g_application_add_main_option: fix type signatureJasper St. Pierre2014-09-161-1/+1
| | | | The flags argument is a GOptionFlags so use that type instead of 'int'.
* Fix some introspection warningsJasper St. Pierre2014-09-161-1/+1
|
* GApplication: Add g_application_add_main_optionJonas Danielsson2014-08-201-0/+9
| | | | | | | | | | | | This function adds a single main option entry to be handeled by GApplication. The option entry has it arg_data field set to NULL and will be added to the applications packed_options. The rationale for this is that bindings will be able to add command line options even when they can't use the un-boxed struct GOptionEntry. https://bugzilla.gnome.org/show_bug.cgi?id=727455
* GApplication: add a "resource base path"Ryan Lortie2014-07-071-0/+6
| | | | | | | | | | | We don't use this for anything inside of GApplication yet, but Gtk is about to start using it to find various bits of the application (such as its menus, icons, etc.). By default, we form the base path from the application ID to end up with the familiar /org/example/app style. https://bugzilla.gnome.org/show_bug.cgi?id=722092
* GApplication: parse command line optionsRyan Lortie2014-02-061-1/+10
| | | | | | | | | | | | | | | | | | | | | 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 g_application_add_main_option_entries(). Also add a "handle-local-options" signal that allows handling of commandline arguments in the local process without having to override local_command_line. 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()). https://bugzilla.gnome.org/show_bug.cgi?id=721977
* Updated FSF's addressDaniel Mustieles2014-01-311-3/+1
|
* Add GNotificationLars Uebernickel2013-10-211-0/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=688492
* application: introduce methods to mark the application as busyCosimo Cecchi2013-04-041-0/+5
| | | | | | | | | | | | | | | This feature is intended for clients that want to signal a desktop shell their busy state, for instance because a long-running operation is pending. 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. https://bugzilla.gnome.org/show_bug.cgi?id=672018
* various: add GLIB_AVAILABLE_IN_ALL everywhere elseRyan Lortie2013-01-131-0/+17
| | | | | | | | | | | Add the GLIB_AVAILABLE_IN_ALL annotation to all old functions (that haven't already been annotated with the GLIB_AVAILABLE_IN_* macros or a deprecation macro). If we discover in the future that we cannot use only one macro on Windows, it will be an easy sed patch to fix that. https://bugzilla.gnome.org/show_bug.cgi?id=688681
* Annotate GApplication::local_command_linePaolo Borelli2013-01-011-0/+20
| | | | | Also add some documentation. https://bugzilla.gnome.org/show_bug.cgi?id=690670
* Move single-include guards inside include guardsMatthias Clasen2012-12-271-3/+3
| | | | | | gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
* gio: GLIB_AVAILABLE_IN to more APIsRyan Lortie2012-11-291-0/+1
| | | | | | Useful on its own, but also for a future patch for symbol visibility. https://bugzilla.gnome.org/show_bug.cgi?id=688681
* application: Add dbus register/unregister hooksChristian Persch2012-05-291-1/+9
| | | | | | | | | | 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.
* Annotate API introduced for 2.32 with GLIB_AVAILABLE_IN_2_32Colin Walters2012-05-261-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=676816
* GApplication: add accessor for DBus informationRyan Lortie2012-04-301-0/+5
| | | | | | | | Provide public access to the GDBusConnect and object path that GApplication is using. Prevents others from having to guess these things for themselves based on the application ID. https://bugzilla.gnome.org/show_bug.cgi?id=671249
* GApplication: add g_application_quit()Ryan Lortie2012-02-211-0/+2
| | | | | | | A long requested feature; this quits the application immediately, ignoring the hold count. https://bugzilla.gnome.org/show_bug.cgi?id=670485
* Drop public menu APIs from GApplicationRyan Lortie2011-12-191-8/+0
| | | | This is moving to Gtk, but we don't want to do it all right now.
* Clean up GApplication docsRyan Lortie2011-12-101-35/+0
| | | | | | | | | | Clean up the docs for GApplication and related classes. I'm no longer writing documentation for the structure type of classes and interfaces. See https://bugzilla.gnome.org/show_bug.cgi?id=665926 for discussin on the correct way forward on this point. Also: stop putting gtk-doc comments in installed headers.
* GApplication: implement GActionMapRyan Lortie2011-12-081-0/+1
| | | | and deprecate g_application_set_action_group().
* GApplication: make distinction about menusRyan Lortie2011-12-081-3/+7
| | | | | | | | Rename g_application_set_menu to g_application_set_app_menu and make a couple of fixups. Clarify the documentation about exactly what this menu is meant to be. Add g_application_set_menubar and document that as well.
* Add g_application_set_menuMatthias Clasen2011-12-081-0/+4
| | | | | This adds ane asy way to export menu information alongside the actions that are already exported by GApplication.
* Clarify docs around main loop vfuncsMatthias Clasen2011-12-071-5/+7
| | | | | | | Mention that the vfuncs are no longer used, and tweak the wording around what g_application_run() does. https://bugzilla.gnome.org/show_bug.cgi?id=665391
* Clarify local_command_line docsMatthias Clasen2011-11-291-3/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=641720
* GApplication: add default applicationRyan Lortie2011-11-261-0/+3
|
* GApplication: introduce ::shutdownBrian Koning2011-09-141-1/+4
| | | | | | Introduce ::shutdown as a dual to ::startup. https://bugzilla.gnome.org/show_bug.cgi?id=643934
* GApplication: Improve documentationMatthias Clasen2011-03-031-7/+13
| | | | This commit adds some details regarding platform data.
* GApplication: document Since properly in header files, 2.26 -> 2.28Rui Matos2011-02-081-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=641783
* More documentation fixups2.27.1Matthias Clasen2010-10-251-1/+1
|
* Remove nonexisting API from the headersMatthias Clasen2010-10-251-2/+0
| | | | I couldn't find any trace of g_application_run_with_arguments.
* Add another example for commandline handlingMatthias Clasen2010-10-231-3/+4
| | | | Also, clarify some aspects in the documentation.
* Brush up the GApplication docsMatthias Clasen2010-10-231-0/+2
| | | | Also, fix up inclusions, mark properties for translation, etc.
* GApplication: reduce GVariant abuseRyan Lortie2010-10-191-20/+20
| | | | Don't use GVariant* as the representation for the argument array.
* GApplication: fill in action group implementationRyan Lortie2010-10-191-0/+3
|
* GApplication: add remote commandline supportRyan Lortie2010-10-191-3/+2
|
* new GApplication implementationRyan Lortie2010-10-191-81/+94
|
* Documentation fixupsMatthias Clasen2010-06-171-3/+3
|
* Rework GApplication API to use GInitableColin Walters2010-06-161-8/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=620952
* Switch to using variants for timestamps, split out signalsColin Walters2010-06-141-17/+10
| | | | | | | | | Like how we're handling activation, use GVariant for timestamps. To avoid polluting the GtkApplication API with GVariants, we rename the GApplication signals to "quit-with-data" and "action-with-data". GtkApplication will then wrap those as just "quit" and "action". https://bugzilla.gnome.org/show_bug.cgi?id=621002
* Use g types for consistencyMatthias Clasen2010-06-071-13/+13
|
* Merge the wip/gapplication branchMatthias Clasen2010-06-071-0/+151
This adds a GApplication object to GIO, which is the core of an application support class, supporting - uniqueness - exporting actions (simple scripting) - standard actions (quit, activate) The implementation for Linux uses D-Bus, takes a name on the session bus, and exports a org.gtk.Application interface. Implementations for Win32 and OS X are still missing.