157d9271fa
application: don't unconditionally unref the GMenuModel in getters
...
Both the app-menu and menubar models can be NULL, so we shouldn't
blindly unref them, since g_object_unref() doesn't cope with NULL
pointers.
2011-12-21 12:20:15 +01:00
72c04c064a
application: mark menu/menubar getters as (transfer none)
...
Since they do not return a reference to the underlying GMenuModel.
2011-12-21 12:19:31 +01:00
9ae0ffb9cb
application: use the same variable names in definitions and declarations
...
gobject-introspection will be confused and mark the methods as not
introspectable otherwise.
2011-12-21 11:29:39 +01:00
5d8641dd92
Add another bloatpad screenshot
2011-12-19 15:16:11 -05:00
8578fefaa5
GtkApplication: add menu API
...
We add the app-menu and menubar public APIs to GtkApplication while
leaving the implementation in GApplication.
The actual implementation will be moved soon.
2011-12-19 12:51:12 -05:00
06c8921975
GtkApplication: document relationship to gdkthreads
2011-12-19 12:51:12 -05:00
363c2d684c
GtkApplication: lock gdk on incoming messages
...
When we have incoming activations or action invocations we should
acquire the GDK lock, just in case the program in question is using gdk
threads.
https://bugzilla.gnome.org/show_bug.cgi?id=665737
2011-12-19 12:51:12 -05:00
76d671d6a2
Move X property handling to GtkApplicationWindow
...
Don't try to deal with this using a qdata and signal connections in
GtkApplication.
2011-12-19 12:51:12 -05:00
cff5ba1bc2
Document that gtk_init is called without argv
...
This answers a question in bug 661823.
2011-12-19 12:51:12 -05:00
080007d7cb
Show off some menus
2011-12-19 12:51:12 -05:00
06a75b7e1f
Some more menu-related docs
2011-12-19 12:51:12 -05:00
3103ae2685
Two small fixes
...
Don't leak a session bus reference, and don't assume a display
is X11 just because we've built the X11 backend.
2011-12-19 12:51:12 -05:00
8bc7513a7b
begin GtkApplication menu support for Mac OS
2011-12-19 12:51:11 -05:00
f485dd3f08
Documentation additions
2011-12-19 12:51:11 -05:00
f7244431a9
GtkApplication: Extract accelerators from menus
...
This allows to specify accelerators in a convenient way, by
adding accel="..." attributes to the menu items in the
XML for the menu.
Currently, the accelerators are extracted only once, when the
menu property is changed on the application.
2011-12-19 12:51:11 -05:00
2398d7e900
Introduce gtkaccelmapprivate.h
...
Move internal accel map API there and update all users.
Also, add an internal function to create an accel path for
an action and parameter, and use it in gtkapplication.c and
gtkmodelmenuitem.c instead of duplicating that code.
2011-12-19 12:51:11 -05:00
153cc818db
GtkApplication: Add API to install accelerators for actions
2011-12-19 12:51:11 -05:00
90fcf994d5
GtkApplication: export windows on the bus
...
And advertise their location on the bus using X11 properties.
2011-12-19 12:51:11 -05:00
03db3e1ca1
(trivially) implement 'shutdown' in GtkApplication
2011-12-19 12:51:11 -05:00
7ef340fb87
Clean up includes
2011-12-19 12:51:10 -05:00
0683f086bb
Whitespace fixes
2011-12-19 12:51:09 -05:00
d9c3714fcb
GtkApplication: doc improvement
2011-12-19 12:51:08 -05:00
a93b9dd1cb
add GtkApplicationWindow
...
This is a GtkWindow subclass that "application windows" will use. Each
is associated with a GtkApplication, has the ability to show menus and
will have its own associated set of actions.
2011-12-19 12:51:08 -05:00
6b7be4a3a2
Add a very bad fallback check
...
...maybe committing this inspires some better solution.
2011-12-19 12:51:07 -05:00
5705a330c2
GtkApplication: Insert separators after sections
...
The previous code was only inserting a separator when a new
section was starting right away, which may not always be the
case.
2011-12-19 12:45:51 -05:00
5aee67793f
GtkApplication: Initial attempt at section headings
...
This should be redone to show the label together with the
separator line, somehow. For now, just put the label below
the separator, as a separate item.
2011-12-19 12:45:51 -05:00
92af3d04b8
GtkApplication: use activate for actions here, too
2011-12-19 12:45:51 -05:00
95d9a5e368
Adapt to api changes in GMenuModel
2011-12-19 12:45:51 -05:00
cc24dbe9c7
GtkApplication: add a way to get the appmenu
...
This function either returns a GtkMenu or NULL.
Still to do: detect if the app menu is externally handled.
2011-12-19 12:45:51 -05:00
5c6656e485
gtk/gtkapplication.c: Fix typo
2011-11-20 23:05:47 +00:00
190c271986
Add a missing include
2011-11-09 22:03:10 -05:00
7e22a5350c
Don't implement GApplication mainloop
...
Let the default GApplication implementation take care of it.
https://bugzilla.gnome.org/show_bug.cgi?id=658805
2011-11-09 00:22:52 -05:00
f86351c05f
GtkApplication: chain up ::startup
2011-09-14 14:04:10 -04:00
c3b7590c77
Avoid GApplication being released twice on gtk_application_remove_window() calls
...
Removing the window from the window list before setting the
application to %NULL avoids gtk_application_remove_window() triggering
another call to gtk_application_window_removed(), which would release
the application a second time.
https://bugzilla.gnome.org/show_bug.cgi?id=653053
2011-06-21 00:38:33 +03:00
8143ce69eb
GtkApplication: Add window-added/-removed signals
...
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
2011-05-31 19:12:13 -04:00
75390b2d60
Sort GtkApplication windows by most-recently-focused
...
Based on a patch by Matt Barnes,
https://bugzilla.gnome.org/show_bug.cgi?id=624539
2011-05-31 18:28:55 -04:00
7db4bee4b6
Clarify documentation about application vs window lifecycle
...
https://bugzilla.gnome.org/show_bug.cgi?id=639931
2011-01-24 22:20:35 -05:00
9389054da2
[GI] Add (type) annotations to real types
2011-01-20 10:38:38 +01:00
f2cde4cf3b
Move the GtkApplication example to the right place
2011-01-06 01:13:50 -05:00
fc122305d0
Protect inclusion of unistd.h
2011-01-02 13:29:23 +01:00
9157e15653
GtkApplication: drop Quit from the docs
...
GtkApplication does not currently implement any default actions.
2010-11-08 11:31:01 +09:00
ac0b97aa23
ifdef X-specific stuff
...
gdk_x11_ APIs can only be used inside #ifdef GDK_WINDOWING_X11.
2010-10-30 17:37:01 +09:00
1be9b7f782
Some GtkApplication cleanups
...
Remove no-longer-needed vfuncs, no longer existing functions,
and improve the docs here and there.
2010-10-23 21:24:24 +02:00
9f035742e3
gtkapplication: fix docs
2010-10-20 11:07:11 +02:00
c5ebb61b6f
GtkApplication: add gtk_application_get_windows()
...
Return a GList of the GtkWindow objects for each window that has the
application set as its "application" property.
2010-10-19 21:10:02 +02:00
ab5fb5dee5
GtkApplication rewrite
2010-10-19 01:31:09 +02:00
5c2966dda3
Do not access an invalid ActionGroup. Closes #624362 .
2010-07-14 14:50:28 -03:00
5f1b5d2406
Merge branch 'windows_list'
2010-07-13 16:49:21 -03:00
0a07e9733b
gtk/: fully remove gtkalias hacks
...
https://bugzilla.gnome.org/show_bug.cgi?id=623845
2010-07-10 02:51:26 +02:00
15646b6e74
docs: Document the GtkApplication::quit signal behavior
...
And add Since: annotations to the GtkApplication signals.
2010-07-08 14:12:27 +01:00