]>
Pileus Git - ~andy/gtk/log
Rui Matos [Thu, 15 Dec 2011 01:33:01 +0000 (01:33 +0000)]
accellabel: Stop setting state flags on the style context for drawing
Rui Matos [Thu, 15 Dec 2011 01:29:26 +0000 (01:29 +0000)]
widget: Set style flags on the style context when the flags are set
This will allow us to simplify most draw methods by not having to explicitly
set the style flags on the context.
Rui Matos [Sun, 11 Dec 2011 19:20:02 +0000 (19:20 +0000)]
widget: Always propagate state flags to all children
https://bugzilla.gnome.org/show_bug.cgi?id=666126
Piotr Drąg [Mon, 19 Dec 2011 19:20:28 +0000 (20:20 +0100)]
Updated POTFILES.in
Ryan Lortie [Mon, 19 Dec 2011 19:03:32 +0000 (14:03 -0500)]
bump glib depend to 2.31.6
Ryan Lortie [Mon, 19 Dec 2011 17:33:21 +0000 (12:33 -0500)]
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.
Ryan Lortie [Sat, 17 Dec 2011 21:14:18 +0000 (16:14 -0500)]
missing file
Ryan Lortie [Sat, 17 Dec 2011 18:17:31 +0000 (13:17 -0500)]
GtkApplication: document relationship to gdkthreads
Ryan Lortie [Sat, 17 Dec 2011 17:50:02 +0000 (12:50 -0500)]
GtkApplicationWindow: deal with remote actions
Deal with remote action invocations correctly by implementing
GRemoteActionGroup in the same way that GApplication does and pushing
remote activations through the before/after_emit functions of the
GApplication associated with the window.
This is the last part of getting the threading situation right.
https://bugzilla.gnome.org/show_bug.cgi?id=665737
Ryan Lortie [Sat, 17 Dec 2011 06:00:38 +0000 (01:00 -0500)]
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
Ryan Lortie [Sat, 17 Dec 2011 17:28:30 +0000 (12:28 -0500)]
Move X property handling to GtkApplicationWindow
Don't try to deal with this using a qdata and signal connections in
GtkApplication.
Matthias Clasen [Sat, 17 Dec 2011 05:22:06 +0000 (00:22 -0500)]
Document that gtk_init is called without argv
This answers a question in bug 661823.
Matthias Clasen [Fri, 16 Dec 2011 03:20:42 +0000 (22:20 -0500)]
Fix a typo
Matthias Clasen [Fri, 16 Dec 2011 03:19:54 +0000 (22:19 -0500)]
Forgotten file
Matthias Clasen [Thu, 15 Dec 2011 05:26:02 +0000 (00:26 -0500)]
Show off some menus
Matthias Clasen [Wed, 14 Dec 2011 11:51:54 +0000 (06:51 -0500)]
Some more menu-related docs
Matthias Clasen [Wed, 14 Dec 2011 11:32:13 +0000 (06:32 -0500)]
Plugman: Find the plugins menu in a better way
Now that GtkBuilder finds named submenus, there's no need for
the clumsy menumodel navigation anymore.
Matthias Clasen [Wed, 14 Dec 2011 05:13:32 +0000 (00:13 -0500)]
GtkBuilder: pick up named submenus
When parsing GMenu xml, use the facility for pick up named submenus.
Note that <section id='foo'>...</section> is _not_ a named submenu.
It is a named item with an unnamed submenu :-(
William Hua [Mon, 12 Dec 2011 03:33:45 +0000 (22:33 -0500)]
Handle menu changes.
William Hua [Mon, 12 Dec 2011 03:17:51 +0000 (22:17 -0500)]
Add accelerators to bloatpad.
William Hua [Mon, 12 Dec 2011 02:49:21 +0000 (21:49 -0500)]
Refactor GMenuModel rendering for Mac OS.
William Hua [Sun, 11 Dec 2011 23:46:55 +0000 (18:46 -0500)]
gtkquartz-menu: fix some leaks
William Hua [Sun, 11 Dec 2011 22:39:30 +0000 (17:39 -0500)]
begin adding menu accelerators
Show accelerators in menus.
Matthias Clasen [Mon, 12 Dec 2011 02:16:24 +0000 (21:16 -0500)]
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.
Matthias Clasen [Sun, 11 Dec 2011 16:25:41 +0000 (11:25 -0500)]
Fix up includes
Ryan Lortie [Sun, 11 Dec 2011 05:06:50 +0000 (00:06 -0500)]
bloatpad: add 'New Window' menu item
William Hua [Sat, 10 Dec 2011 23:51:30 +0000 (18:51 -0500)]
begin GtkApplication menu support for Mac OS
Matthias Clasen [Fri, 9 Dec 2011 18:51:39 +0000 (13:51 -0500)]
Another plugin, for good measure
Matthias Clasen [Fri, 9 Dec 2011 18:27:10 +0000 (13:27 -0500)]
Something for the eye
Matthias Clasen [Fri, 9 Dec 2011 18:17:35 +0000 (13:17 -0500)]
Add an action too
Matthias Clasen [Fri, 9 Dec 2011 18:09:38 +0000 (13:09 -0500)]
wip example for plugin/gmenu interaction
Matthias Clasen [Fri, 9 Dec 2011 16:34:39 +0000 (11:34 -0500)]
Update testgmenu to latest api changes
Ryan Lortie [Thu, 8 Dec 2011 05:15:45 +0000 (00:15 -0500)]
GtkApplicationWindow: share one GActionMuxer
Use the same GActionMuxer for menubars and accels instead of recreating
a new one each time.
Matthias Clasen [Thu, 8 Dec 2011 04:55:33 +0000 (23:55 -0500)]
Documentation additions
Matthias Clasen [Mon, 5 Dec 2011 22:50:17 +0000 (17:50 -0500)]
GtkApplicationWindow: Always install accelerators
We want accelerators to work, even if the menus are not shown
locally, so we can't rely on the GtkMenu code to set them up
for us. Currently, this code only installs accelerators when the
window is realized.
Matthias Clasen [Mon, 5 Dec 2011 22:44:03 +0000 (17:44 -0500)]
Bloatpad: Add an accelerator in the menu
Matthias Clasen [Mon, 5 Dec 2011 22:41:56 +0000 (17:41 -0500)]
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.
Matthias Clasen [Mon, 5 Dec 2011 22:37:04 +0000 (17:37 -0500)]
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.
Matthias Clasen [Mon, 5 Dec 2011 22:29:32 +0000 (17:29 -0500)]
Bloatpad: Add an accelerator
Matthias Clasen [Mon, 5 Dec 2011 22:28:19 +0000 (17:28 -0500)]
GtkApplication: Add API to install accelerators for actions
Matthias Clasen [Mon, 5 Dec 2011 22:14:57 +0000 (17:14 -0500)]
GtkApplicationWindow: Set the accel group on constructed windows
This will make the menuitems pick up matching accel map entries
automatically. Currently, nothing creates such accel map entries,
though.
Matthias Clasen [Mon, 5 Dec 2011 22:10:17 +0000 (17:10 -0500)]
GtkApplicationWindow: Add a GtkAccelGroup
This will be used in the following patches.
Matthias Clasen [Mon, 5 Dec 2011 22:41:44 +0000 (17:41 -0500)]
Fix a gtk-doc warning
Ryan Lortie [Mon, 5 Dec 2011 05:27:11 +0000 (00:27 -0500)]
GtkApplication: export windows on the bus
And advertise their location on the bus using X11 properties.
Ryan Lortie [Mon, 5 Dec 2011 05:25:28 +0000 (00:25 -0500)]
(trivially) implement 'shutdown' in GtkApplication
Matthias Clasen [Mon, 5 Dec 2011 00:16:08 +0000 (19:16 -0500)]
Add an example
Matthias Clasen [Sun, 4 Dec 2011 23:40:19 +0000 (18:40 -0500)]
Update GtkApplicationWindow docs
Matthias Clasen [Sun, 4 Dec 2011 23:33:01 +0000 (18:33 -0500)]
Whitespace fix
Matthias Clasen [Sun, 4 Dec 2011 00:35:27 +0000 (19:35 -0500)]
Make accelmap initialization more forgiving
Matthias Clasen [Sun, 4 Dec 2011 00:34:32 +0000 (19:34 -0500)]
Clean up includes
Ryan Lortie [Sat, 3 Dec 2011 23:52:35 +0000 (18:52 -0500)]
bloatpad: add proper sections to the menus
Ryan Lortie [Sat, 3 Dec 2011 23:45:32 +0000 (18:45 -0500)]
Split off GMenuModel -> GtkMenuBar code
Put this in a separate file and substantially refactor it.
Move handling of submenu creation into gtkmodelmenuitem where it
belongs.
Improve our handling of when to show separators or not.
Ryan Lortie [Sat, 3 Dec 2011 19:55:03 +0000 (14:55 -0500)]
Watch "shell shows menu" settings for changes
Correctly monitor the GtkSettings for changes to the
"gtk-shell-shows-app-menu" and "gtk-shell-shows-menubar" properties.
Ryan Lortie [Sat, 3 Dec 2011 18:35:26 +0000 (13:35 -0500)]
GtkSettings: quartz: shell always shows menus
Matthias Clasen [Fri, 2 Dec 2011 23:21:10 +0000 (18:21 -0500)]
Whitespace fixes
Matthias Clasen [Fri, 2 Dec 2011 23:18:58 +0000 (18:18 -0500)]
Never add separators to menubars
Ryan Lortie [Fri, 2 Dec 2011 21:10:31 +0000 (16:10 -0500)]
gmenu testcase: update to glib API changes
Ryan Lortie [Fri, 2 Dec 2011 15:36:49 +0000 (10:36 -0500)]
bloatpad: move action/menu setup to ::startup
No need to waste time doing this in init() if we are not going to become
the primary instance.
Ryan Lortie [Fri, 2 Dec 2011 15:32:10 +0000 (10:32 -0500)]
bloatpad: port to GActionMap for application
g_application_set_action_group() is now deprecated.
Ryan Lortie [Fri, 2 Dec 2011 03:59:27 +0000 (22:59 -0500)]
GtkModelMenuItem: don't leak a GVariant
Ryan Lortie [Fri, 2 Dec 2011 03:43:54 +0000 (22:43 -0500)]
bloatpad: use GtkBuilder for constructing menus
This is closer to what a real application would want to do.
Ryan Lortie [Fri, 2 Dec 2011 03:33:30 +0000 (22:33 -0500)]
GtkModelMenuItem: omit indicator if not required
GtkModelMenuItem, being based on GtkCheckMenuItem, was always reserving
space for a check/radio indicator. This ends up looking pretty strange
in a GtkMenuBar.
Don't reserve space for the indicator unless it's appropriate.
Ryan Lortie [Fri, 2 Dec 2011 03:16:34 +0000 (22:16 -0500)]
GtkApplicationWindow: nuke some g_print spew
Ryan Lortie [Fri, 2 Dec 2011 03:14:57 +0000 (22:14 -0500)]
GtkApplcationWindow: plug two obvious leaks
Colin Walters [Fri, 2 Dec 2011 03:13:56 +0000 (22:13 -0500)]
GtkApplicationWindow: Consistently unparent menubar
We create it floating, and don't hold an extra ref, so we should
just unparent it.
Ryan Lortie [Fri, 2 Dec 2011 03:01:07 +0000 (22:01 -0500)]
GtkApplicationWindow: clean up menubar logic
Matthias Clasen [Fri, 2 Dec 2011 01:49:05 +0000 (20:49 -0500)]
Only add a separator when a section ends
Ryan Lortie [Fri, 2 Dec 2011 01:39:11 +0000 (20:39 -0500)]
introduce GtkModelMenuItem
This GtkMenuItem subclass (and GActionObserver implementation) contains
all the knowledge necessary for converting a GMenuModel item description
into a GtkMenuItem.
Remove much of the code that used to do this from
gtkapplicationwindow.c.
Ryan Lortie [Fri, 2 Dec 2011 00:57:32 +0000 (19:57 -0500)]
GtkSettings: add shell-shows-menubar property
Unity will set this to tell us that it is going to handle displaying the
menubar.
Matthias Clasen [Thu, 1 Dec 2011 23:13:15 +0000 (18:13 -0500)]
Only add separators when a section actually ends
Matthias Clasen [Thu, 1 Dec 2011 22:46:28 +0000 (17:46 -0500)]
Bloatpad: Add a View menu for fullscreen
Matthias Clasen [Thu, 1 Dec 2011 22:41:46 +0000 (17:41 -0500)]
Bloatpad: Don't leak a menu model
Colin Walters [Thu, 1 Dec 2011 22:53:28 +0000 (17:53 -0500)]
bloatpad: Be 640x480 by default
Because otherwise we're just a few pixels, and this is the least lame
solution I know of in GTK+.
Colin Walters [Thu, 1 Dec 2011 22:47:34 +0000 (17:47 -0500)]
GtkApplicationWindow: Further sanitize handling of merging app menu and menubar
The _set_show_app_menu should really be _set_show_menubar().
Also, correctly display just the window menu in the window when run
under GNOME 3.
Colin Walters [Thu, 1 Dec 2011 22:12:20 +0000 (17:12 -0500)]
bloatpad: Fix Edit to be a submenu
Colin Walters [Thu, 1 Dec 2011 21:46:36 +0000 (16:46 -0500)]
GtkApplication: Merge app menu and menubar
Change bloatpad to have both an app menu and a menubar.
Matthias Clasen [Thu, 1 Dec 2011 20:25:46 +0000 (15:25 -0500)]
GtkApplicationWindow: Make mnemonics work for stateful actions
Matthias Clasen [Thu, 1 Dec 2011 20:25:24 +0000 (15:25 -0500)]
Bloatpad: Add mnemonics to the menu
Colin Walters [Thu, 1 Dec 2011 18:29:41 +0000 (13:29 -0500)]
GtkApplicationWindow: Don't unref a NULL object
Ryan Lortie [Thu, 1 Dec 2011 17:18:22 +0000 (12:18 -0500)]
Adapt to changes in GLib API
g_application_get_menu() -> get_app_menu().
Matthias Clasen [Thu, 1 Dec 2011 17:17:53 +0000 (12:17 -0500)]
Drop GtkApplicationMenuButton for now
This feels premature; we do have the fallback situation covered
adaequately with the menubar, and people can do their own creative
solutions with gtk_application_window_get_menu(), so we don't have
to offer a widget for this right now.
Matthias Clasen [Thu, 1 Dec 2011 13:51:22 +0000 (08:51 -0500)]
Remove a redundant test
Matthias Clasen [Thu, 1 Dec 2011 13:33:08 +0000 (08:33 -0500)]
GtkApplicationMenuButton: add docs
Matthias Clasen [Thu, 1 Dec 2011 11:30:10 +0000 (06:30 -0500)]
Undoccommentify action muxer files
Matthias Clasen [Thu, 1 Dec 2011 05:21:11 +0000 (00:21 -0500)]
Whitespace fixes
Matthias Clasen [Thu, 1 Dec 2011 05:09:45 +0000 (00:09 -0500)]
Hook up docs
Matthias Clasen [Thu, 1 Dec 2011 05:02:08 +0000 (00:02 -0500)]
Remove no-longer existing function
Matthias Clasen [Thu, 1 Dec 2011 04:59:32 +0000 (23:59 -0500)]
GtkApplicationWindow: more docs
Matthias Clasen [Thu, 1 Dec 2011 04:55:05 +0000 (23:55 -0500)]
Include gtkapplicationmenubutton.h in gtk.h
Matthias Clasen [Thu, 1 Dec 2011 04:53:39 +0000 (23:53 -0500)]
GtkApplicationWindow: mark a string for translation
Matthias Clasen [Thu, 1 Dec 2011 04:49:23 +0000 (23:49 -0500)]
Some coding style fixes
Matthias Clasen [Thu, 1 Dec 2011 04:48:59 +0000 (23:48 -0500)]
GtkApplication: doc improvement
Matthias Clasen [Thu, 1 Dec 2011 00:14:48 +0000 (19:14 -0500)]
Some initial docs
Matthias Clasen [Wed, 30 Nov 2011 21:50:17 +0000 (16:50 -0500)]
Drop an unused variable
Matthias Clasen [Wed, 30 Nov 2011 21:33:32 +0000 (16:33 -0500)]
Don't call g_object_unref on a variant
Tsk, tsk...
Colin Walters [Wed, 30 Nov 2011 20:55:31 +0000 (15:55 -0500)]
GtkApplicationWindow: Use dispose for GObjects
This ensures we break cyclic references.
Colin Walters [Wed, 30 Nov 2011 20:41:43 +0000 (15:41 -0500)]
gtkapplicationwindow: Pick up gtk-shell-shows-app-menu XSetting
Calling gtk_application_window_set_show_app_menu() is now an override
for that setting. If you don't call it, we pick up the default.
Colin Walters [Wed, 30 Nov 2011 20:41:02 +0000 (15:41 -0500)]
gdk: Fix prototype for gdk_x11_window_set_utf8_property
Ryan Lortie [Wed, 30 Nov 2011 20:25:12 +0000 (15:25 -0500)]
bloatpad: use GtkApplicationMenuButton
Ryan Lortie [Wed, 30 Nov 2011 20:24:22 +0000 (15:24 -0500)]
add GtkApplicationMenuButton