summaryrefslogtreecommitdiff
path: root/gtk/gtkapplication-x11.c
Commit message (Collapse)AuthorAgeFilesLines
* GtkApplicationX11: read the startup ID from the platform dataGiovanni Campagna2014-01-021-0/+15
| | | | | | | | | | | If the platform data passed with actions and activations includes a startup notify ID, we should read it and pass it down to GDK. This ensures that the right startup notify is completed after the signal emission, and that the user time of the GdkDisplay is properly updated (which in turn makes sure the windows are not subjected to focus-stealing-prevention) https://bugzilla.gnome.org/show_bug.cgi?id=721304
* Refactor GtkApplicationRyan Lortie2013-12-161-0/+89
gtkapplication.c has turned into a bit of an #ifdef mess over time, and many of the current checks are incorrect. As an example, if you build Gtk for wayland, and exclude the X11 backend, much of the functionality required by wayland (such as exporting menu models) will be disabled. Solve that by introducing a backend mechanism to GtkApplication (named GtkApplicationImpl) similar to the one in GApplication. Add backends for Wayland, X11 and Quartz, with X11 and Wayland sharing a common 'DBus' superclass. GtkApplicationImpl | /--------------+-------------------\ | | GtkApplicationImplDBus GtkApplicationImplQuartz | /-----------+-----------------\ | | GtkApplicationImplX11 GtkApplicationImplWayland GtkApplicationImpl itself is essentially a bunch of vfuncs that serve as hooks for various things that the platform-specific backends may be interested in doing (startup, shutdown, managing windows, inhibit, etc.) With this change, all platform specific code has been removed from gtkapplication.c and gtkapplicationwindow.c (both of which are now free of #ifdefs, except for a UNIX-specific use of GDesktopAppInfo in gtkapplicationwindow.c). Additionally, because of the movement of the property-setting code out of GtkApplicationWindow, the _GTK_APPLICATION_ID properties (and friends) will be set on non-GtkApplicationWindows, such as dialogs. https://bugzilla.gnome.org/show_bug.cgi?id=720550