1. 03 Aug, 2014 1 commit
  2. 07 Jul, 2014 1 commit
    • Allison Karlitskaya's avatar
      GtkApplication: use resources for loading menus · 868ee07f
      Allison Karlitskaya authored
      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.
  3. 03 Jul, 2014 1 commit
    • Allison Karlitskaya's avatar
      Add gtk_application_prefers_app_menu() · d3b34d3c
      Allison Karlitskaya authored
      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'.
  4. 06 Apr, 2014 1 commit
  5. 20 Jan, 2014 1 commit
  6. 17 Oct, 2013 1 commit
  7. 15 Oct, 2013 1 commit
    • Allison Karlitskaya's avatar
      GtkApplication: a new approach to accels · 9a6ee36e
      Allison Karlitskaya authored
      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.
  8. 05 May, 2013 1 commit
  9. 28 Dec, 2012 1 commit
  10. 20 Aug, 2012 1 commit
  11. 03 May, 2012 1 commit
  12. 27 Feb, 2012 2 commits
  13. 21 Feb, 2012 2 commits
  14. 18 Jan, 2012 1 commit
  15. 11 Jan, 2012 2 commits
    • Matthias Clasen's avatar
      Rename GtkApplicationEndStyle · 7c0c65ec
      Matthias Clasen authored
      Call it EndSession to make it clearer what this is about.
    • Matthias Clasen's avatar
      Simplify logout notification api · 1c486fb8
      Matthias Clasen authored
      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
      We still emit ::quit when the application is about to quit.
  16. 07 Jan, 2012 3 commits
    • Matthias Clasen's avatar
      Add gtk_application_end_session · 3142d139
      Matthias Clasen authored
      This function allows applications to request that
      the user session be ended by logout/shutdown/reboot.
    • Matthias Clasen's avatar
      GtkApplication: Add an inhibit api · bdd7e15c
      Matthias Clasen authored
      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.
    • Matthias Clasen's avatar
      GtkApplication: Add logout notification · 31337913
      Matthias Clasen authored
      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.
  17. 19 Dec, 2011 7 commits
  18. 31 May, 2011 1 commit
  19. 25 Jan, 2011 1 commit
    • Michael Natterer's avatar
      gtk: add missing class padding · 3933f99e
      Michael Natterer authored
      Sorry for this late ABI break, but the newly added style classes
      definitely need padding, so I can just as well add missing padding
  20. 23 Oct, 2010 1 commit
  21. 19 Oct, 2010 1 commit
  22. 18 Oct, 2010 1 commit
  23. 21 Sep, 2010 1 commit
  24. 05 Jul, 2010 1 commit
  25. 17 Jun, 2010 1 commit
    • Emmanuele Bassi's avatar
      application: Allow sub-classes to override the Window creation · 4f357dbf
      Emmanuele Bassi authored
      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
      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.
  26. 16 Jun, 2010 1 commit
  27. 14 Jun, 2010 1 commit
  28. 07 Jun, 2010 1 commit
    • Matthias Clasen's avatar
      Add GtkApplication · 1ae257d0
      Matthias Clasen authored
      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.