summaryrefslogtreecommitdiff
path: root/gtk/gtkapplication.h
Commit message (Collapse)AuthorAgeFilesLines
* GtkApplication: Remove priv pointerTimm Bäder2018-07-081-5/+1
|
* The big versioning cleanupMatthias Clasen2018-02-061-14/+14
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* Drop gtk_application_is_inhibitedMatthias Clasen2017-11-281-3/+0
| | | | | | | | This function returns global session state that may not be available to applications (e.g. in sandboxed environments), and is not needed by applications, so just drop it, instead of keeping a function around that can't be guaranteed to work.
* gtkapplication: Remove deprecated APITimm Bäder2016-10-181-11/+0
|
* Remove introspection scanner guards around autocleanupsEmmanuele Bassi2015-11-111-2/+0
| | | | They are not needed.
* Start recursively moving autocleanups macros to their headersEmmanuele Bassi2015-11-101-0/+4
| | | | | | | | | | | | | | | | | | * Cover letter Having a single header file for all autocleanups definitions was a reasonable stop-gap measure, but now GTK+ is starting to use G_DECLARE_* macros. This means that every class using a G_DECLARE_* macro will need to include "gtk.h" to avoid compiler warnings, which is not acceptable. By moving the G_DEFINE_AUTO* use to the header that defines the type we allow using the G_DECLARE_* macros without sacrificing the ability to include only the needed files when deriving from a class. * Commit This commit changes all includes relative to GtkWindow to define their own autocleanup macros.
* Add gtk_application_get_actions_for_accel()Ryan Lortie2014-08-031-0/+4
| | | | | | | | | This counterpart to gtk_application_get_accels_for_action() lets you find out if a particular accelerator has one or more actions associated with it. This might be useful from an accelerator editor or plugin system to prevent the the installation of conflicting accelerators. https://bugzilla.gnome.org/show_bug.cgi?id=721367
* GtkApplication: use resources for loading menusRyan Lortie2014-07-071-0/+4
| | | | | | | | | | | | | | | | | | Use the new ::resource-base-path property on #GApplication to attempt to load the menu layout of the application. We look first at gtk/menus-appmenu.ui or gtk/menus-traditional.ui depending on the setting of gtk_application_prefers_app_menu(). Failing that, we fall back to the common case of gtk/menus.ui (which should always be given). This provides a convenient way for application authors to provide a different set of menus, depending on the desktop environment they find themselves in. As is the intention with other resources, if the resource base path is unset, nothing will be loaded. Additionally, if the expected files are not found, it is not an error -- just nothing happens. https://bugzilla.gnome.org/show_bug.cgi?id=722092
* Add gtk_application_prefers_app_menu()Ryan Lortie2014-07-021-0/+3
| | | | | | | | | | | | | Applications can call this to determine if they should an app menu. This will be %FALSE on desktop environments that do not have an application menu like the one in gnome-shell. It is %FALSE on Windows and Mac OS. Applications are completely free to totally ignore this API -- it is only provided as a hint to help applications that may be interested in supporting non-GNOME platforms with a more native 'look and feel'. https://bugzilla.gnome.org/show_bug.cgi?id=722092
* Deprecate gtk_application_add_acceleratorMatthias Clasen2014-04-061-2/+3
| | | | | The new gtk_application_set_accels_for_action api is more flexible and better.
* docs: add Gtk*Class docsWilliam Jon McCann2014-01-201-0/+11
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=81006
* Fix since tagsMatthias Clasen2013-10-161-3/+3
| | | | Mark 3.12 api as such.
* GtkApplication: a new approach to accelsRyan Lortie2013-10-151-1/+12
| | | | | | | | | | | | | | | | | | | Rework how accels are handled on GtkApplicationWindow. Instead of having GtkApplication fill the GtkAccelMap which is then used by GtkApplicationWindow to create a GtkAccelGroup filled with closures that is then associated with the window, do it directly. GtkApplication now keeps a list of accels and their actions. Accelerators on a GtkApplicationWindow ask GtkApplication to execute the appropriate action. This saves a fair bit of complexity and memory use (due to not having to create all those closures and accelmap entries). The new approach also supports multiple accels per action (although there is not yet a public API for it). This patch (and the ones before) Reviewed and ACK'd by Matthias Clasen.
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+5
| | | | Add annotations to all exported functions in GTK+ headers.
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-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
* GtkApplication: add 'active-window' propertyRyan Lortie2012-08-201-0/+3
|
* application: Add unique IDs for GtkApplicationWindowChristian Persch2012-05-031-0/+4
| | | | | | This will allow to refer to specific GtkApplicationWindows remotely by ID. https://bugzilla.gnome.org/show_bug.cgi?id=674409
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk: Use versioned deprecationsMatthias Clasen2012-02-271-0/+9
| | | | | | | This patch changes all uses of GDK_DEPRECATED(_FOR) in gtk headers by the versioned variants, GDK_DEPRECATED_IN_3_x(_FOR). At the same time, we add GDK_AVAILABLE_IN_3_x annotations for all API additions in 3.2 and 3.4.
* GtkApplication: simplify session quit handlingRyan Lortie2012-02-211-3/+1
| | | | | | | | Instead of firing a 'quit' signal and expecting the application to do something that will cause it to quit, just call the new g_application_quit() API for ourselves. https://bugzilla.gnome.org/show_bug.cgi?id=670485
* GtkApplication: remove end session APIRyan Lortie2012-02-211-10/+0
| | | | | | | | This seems a bit "too powerful" and unlikely to be used by most applications. Remove it from now, until someone comes up with a strong desire for it. https://bugzilla.gnome.org/show_bug.cgi?id=670485
* move menus over from GLibRyan Lortie2012-01-181-2/+2
| | | | | | | App menu and menubar are now properties of GtkApplication and their bus location is exported using X window properties. https://bugzilla.gnome.org/show_bug.cgi?id=668118
* Rename GtkApplicationEndStyleMatthias Clasen2012-01-101-4/+4
| | | | Call it EndSession to make it clearer what this is about.
* Simplify logout notification apiMatthias Clasen2012-01-101-6/+0
| | | | | | | | | We don't expose ::quit-requested as API anymore. Instead, we expect users to register inhibitors when needed. Without quit-requested, there is no need for ::quit-cancelled and gtk_application_quit_response anymore. We still emit ::quit when the application is about to quit.
* Add gtk_application_end_sessionMatthias Clasen2012-01-071-0/+10
| | | | | This function allows applications to request that the user session be ended by logout/shutdown/reboot.
* GtkApplication: Add an inhibit apiMatthias Clasen2012-01-071-0/+17
| | | | | | This lets applications block logout and similar actions ahead of time. Currently only implemented for D-Bus, but Windows has very similar API since Vista.
* GtkApplication: Add logout notificationMatthias Clasen2012-01-071-1/+9
| | | | | | | | | This is fairly basic, allowing applications to learn when the session manager is about to end the session, and possibly block this. The only implementation at this point is using the org.gnome.SessionManager D-Bus interface of gnome-session. It should be straightforward to port the EggSMClient implementations for Windows and OS X.
* GtkApplication: add menu APIRyan Lortie2011-12-191-1/+8
| | | | | | | We add the app-menu and menubar public APIs to GtkApplication while leaving the implementation in GApplication. The actual implementation will be moved soon.
* GtkApplication: Add API to install accelerators for actionsMatthias Clasen2011-12-191-0/+7
|
* Clean up includesMatthias Clasen2011-12-191-1/+0
|
* Whitespace fixesMatthias Clasen2011-12-191-9/+9
|
* Remove no-longer existing functionMatthias Clasen2011-12-191-1/+0
|
* GtkApplication: add a way to get the appmenuMatthias Clasen2011-12-191-0/+3
| | | | | This function either returns a GtkMenu or NULL. Still to do: detect if the app menu is externally handled.
* Remove an unneeded includeMatthias Clasen2011-12-191-1/+0
|
* GtkApplication: Add window-added/-removed signalsMatthias Clasen2011-05-311-1/+6
| | | | | | | This is useful to let unrelated parts of an application (or plugins) learn about the windows of an application. Based on a patch by Matt Barnes, https://bugzilla.gnome.org/show_bug.cgi?id=641087
* gtk: add missing class paddingMichael Natterer2011-01-251-1/+1
| | | | | | Sorry for this late ABI break, but the newly added style classes definitely need padding, so I can just as well add missing padding globally.
* Some GtkApplication cleanupsMatthias Clasen2010-10-231-3/+0
| | | | | Remove no-longer-needed vfuncs, no longer existing functions, and improve the docs here and there.
* GtkApplication: add gtk_application_get_windows()Ryan Lortie2010-10-191-1/+9
| | | | | Return a GList of the GtkWindow objects for each window that has the application set as its "application" property.
* GtkApplication rewriteRyan Lortie2010-10-191-49/+15
|
* Tons of transfer annotationsMatthias Clasen2010-09-211-4/+4
|
* [GtkApplication] Add gtk_application_get_windows()Jonh Wendell2010-07-051-12/+13
| | | | Closes #623598.
* application: Allow sub-classes to override the Window creationEmmanuele Bassi2010-06-171-5/+7
| | | | | | | | | | | | | | | | | | Sub-classes of GtkApplication might want to override the way an application window is created - for instance, to hook into GtkBuilder or to set up some basic UI or state. A new GtkApplication::create_window() virtual function is added to the GtkApplicationClass vtable, which returns the newly created GtkWindow. The gtk_application_create_window() function calls the vfunc and adds the returned window to the list of windows managed by the application instance. Calling gtk_application_add_window() will also set the default window, if one is not already set. This commit also removes a spurious g_object_ref_sink() on the newly created GtkWindow.
* [GtkApplication] Update for GApplication API changesColin Walters2010-06-161-3/+3
| | | | Move appid parameter first to match GApplication.
* [GtkApplication] Update for GApplication API changesColin Walters2010-06-141-2/+6
| | | | | | We now implement "quit" and "action" signals here. https://bugzilla.gnome.org/show_bug.cgi?id=621003
* Add GtkApplicationMatthias Clasen2010-06-071-0/+100
This is a work in progress to stub out an application class. The primary goal is to provide a mechanism for applications to export GtkActions, and there is a standard "Quit" action. This is based on GApplication. Future work: * Add a way to say "This is my application menubar", which gets put into all toplevel windows on non-OS-X, and into the top on OS X. * Support session management. * Support application settings. https://bugzilla.gnome.org/show_bug.cgi?id=127958