1. 22 May, 2021 1 commit
  2. 24 Jul, 2020 1 commit
  3. 22 May, 2020 1 commit
    • Matthias Clasen's avatar
      gtkapplication: Drop app menu support · 79d6a77d
      Matthias Clasen authored
      Drop apis and code related to appmenus from
      both GtkApplication and GtkApplicationWindow.
      
      We still keep the menubar support, since it
      is needed for system integration on OS X.
      
      Fixes: #2731
      79d6a77d
  4. 19 May, 2019 1 commit
    • Matthias Clasen's avatar
      Padding review · bd6c4a0d
      Matthias Clasen authored
      Ensure that the class structs of all subclassable
      types have sufficient padding (standardizing on 8
      slots, here).
      
      GtkApplication
      GtkWidget
      GtkContainer
      GtkWindow
      GtkDialog
      GtkApplicationWindow
      GtkToolItem
      GtkBin
      bd6c4a0d
  5. 08 Jul, 2018 1 commit
  6. 06 Feb, 2018 1 commit
    • Matthias Clasen's avatar
      The big versioning cleanup · 4c150d8e
      Matthias Clasen authored
      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.
      4c150d8e
  7. 29 Nov, 2017 1 commit
    • Matthias Clasen's avatar
      Drop gtk_application_is_inhibited · 65808418
      Matthias Clasen authored
      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.
      65808418
  8. 17 Oct, 2016 1 commit
  9. 11 Nov, 2015 1 commit
  10. 10 Nov, 2015 1 commit
    • Emmanuele Bassi's avatar
      Start recursively moving autocleanups macros to their headers · 93369788
      Emmanuele Bassi authored
      * 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.
      93369788
  11. 03 Aug, 2014 1 commit
  12. 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.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=722092
      868ee07f
  13. 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'.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=722092
      d3b34d3c
  14. 06 Apr, 2014 1 commit
  15. 20 Jan, 2014 1 commit
  16. 17 Oct, 2013 1 commit
  17. 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.
      9a6ee36e
  18. 05 May, 2013 1 commit
  19. 28 Dec, 2012 1 commit
  20. 20 Aug, 2012 1 commit
  21. 03 May, 2012 1 commit
  22. 27 Feb, 2012 2 commits
  23. 21 Feb, 2012 2 commits
  24. 18 Jan, 2012 1 commit
  25. 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.
      7c0c65ec
    • 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
      anymore.
      
      We still emit ::quit when the application is about to quit.
      1c486fb8
  26. 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.
      3142d139
    • 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.
      bdd7e15c
    • 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.
      31337913
  27. 19 Dec, 2011 7 commits
  28. 31 May, 2011 1 commit
  29. 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
      globally.
      3933f99e