]> Pileus Git - ~andy/gtk/log
~andy/gtk
11 years agoBump version
Matthias Clasen [Mon, 16 Jul 2012 19:08:17 +0000 (15:08 -0400)]
Bump version

11 years ago3.5.8
Matthias Clasen [Mon, 16 Jul 2012 12:33:07 +0000 (08:33 -0400)]
3.5.8

11 years agoMore updates
Matthias Clasen [Mon, 16 Jul 2012 18:27:03 +0000 (14:27 -0400)]
More updates

11 years agoNew gtk-launch command
Tomas Bzatek [Mon, 16 Jul 2012 15:29:01 +0000 (17:29 +0200)]
New gtk-launch command

This program launches an application specified by its desktop name
optinally taking list of URIs which are passed as arguments.

Uses GdkAppLaunchContext to get proper startup notification and
display handling for graphical apps.

https://bugzilla.gnome.org/show_bug.cgi?id=679342

11 years agoUpdated POTFILES.in
Piotr Drąg [Mon, 16 Jul 2012 15:43:11 +0000 (17:43 +0200)]
Updated POTFILES.in

11 years agowayland: Use the correct union member for axis events
Rob Bradford [Mon, 16 Jul 2012 14:36:40 +0000 (15:36 +0100)]
wayland: Use the correct union member for axis events

Otherwise we end up overriding other members of the struct (in this case the
device pointer) and generate an error.

11 years agowayland: implementation of pointer_handle_axis.
José Dapena Paz [Fri, 13 Jul 2012 14:29:25 +0000 (16:29 +0200)]
wayland: implementation of pointer_handle_axis.

We translate wayland pointer axis events to GDK smooth scroll events, to
implement pointer_handle_axis events.

https://bugzilla.gnome.org/show_bug.cgi?id=679986
Signed-off-by: Rob Bradford <rob@linux.intel.com>
11 years agocellrendererpix: set the IMAGE style class when rendering an icon
Cosimo Cecchi [Wed, 11 Jul 2012 15:22:20 +0000 (11:22 -0400)]
cellrendererpix: set the IMAGE style class when rendering an icon

This way, themes can change symbolic icon colors for views, by using a

.view.image {

}

CSS selector.

https://bugzilla.gnome.org/show_bug.cgi?id=680008

11 years agowayland: Implement the keyboard_enter/keyboard_leave events
Rob Bradford [Mon, 16 Jul 2012 12:40:55 +0000 (13:40 +0100)]
wayland: Implement the keyboard_enter/keyboard_leave events

This code is derived from the old keyboard focus change event handling.

11 years agowayland: data_device.data_offer now has a safe object wrapper
Rob Bradford [Mon, 16 Jul 2012 12:39:32 +0000 (13:39 +0100)]
wayland: data_device.data_offer now has a safe object wrapper

The prototype for the listener has changed to provide a typesafe object rather
than an id that you have to bind into an object yourself.

11 years agowayland: Process the keymap that is sent over from the compositor
Rob Bradford [Mon, 16 Jul 2012 11:33:35 +0000 (12:33 +0100)]
wayland: Process the keymap that is sent over from the compositor

Load the keymap from the file descriptor that the compositor has sent us and
then save that into our internal object for future use.

11 years agowayland: Expose _gdk_wayland_display_get_keymap internally
Rob Bradford [Sat, 14 Jul 2012 17:37:47 +0000 (18:37 +0100)]
wayland: Expose _gdk_wayland_display_get_keymap internally

11 years agoUpdates
Matthias Clasen [Mon, 16 Jul 2012 10:49:11 +0000 (06:49 -0400)]
Updates

11 years agotests: add a test for GtkLevelBar GtkBuildable implementation
Cosimo Cecchi [Thu, 12 Jul 2012 14:34:28 +0000 (10:34 -0400)]
tests: add a test for GtkLevelBar GtkBuildable implementation

https://bugzilla.gnome.org/show_bug.cgi?id=677892

11 years agovisuals: add a visual demo for GtkLevelBar
Cosimo Cecchi [Fri, 8 Jun 2012 22:58:51 +0000 (18:58 -0400)]
visuals: add a visual demo for GtkLevelBar

https://bugzilla.gnome.org/show_bug.cgi?id=677892

11 years agolevel-bar: add default Raleigh theming for GtkLevelBar
Cosimo Cecchi [Thu, 12 Jul 2012 14:52:00 +0000 (10:52 -0400)]
level-bar: add default Raleigh theming for GtkLevelBar

https://bugzilla.gnome.org/show_bug.cgi?id=677892

11 years agolevel-bar: introduce GtkLevelBar
Cosimo Cecchi [Tue, 29 May 2012 21:00:33 +0000 (17:00 -0400)]
level-bar: introduce GtkLevelBar

Similar to CcStrengthBar from gnome-control-center, but more generic and
with thorough CSS styling support.

https://bugzilla.gnome.org/show_bug.cgi?id=677892

11 years agodocs: remove duplicate entries in gtk3-sections
Cosimo Cecchi [Mon, 16 Jul 2012 02:23:32 +0000 (22:23 -0400)]
docs: remove duplicate entries in gtk3-sections

11 years agoUpdated Polish translation
Piotr Drąg [Sun, 15 Jul 2012 21:31:39 +0000 (23:31 +0200)]
Updated Polish translation

11 years agoUpdated German translation
Christian Kirbach [Sun, 15 Jul 2012 16:20:43 +0000 (18:20 +0200)]
Updated German translation

11 years agoFix preview sizing in GtkFontSelection
Matthias Clasen [Sun, 15 Jul 2012 15:45:21 +0000 (11:45 -0400)]
Fix preview sizing in GtkFontSelection

The code that was trying to limit preview size changes was
running into some width-for-height pitfalls. It turns out
that the dialog behaves quite ok without this code, so just
remove it.

11 years agoUpdated Telugu Translation
Praveen Illa [Sun, 15 Jul 2012 11:59:46 +0000 (17:29 +0530)]
Updated Telugu Translation

11 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Sun, 15 Jul 2012 11:34:18 +0000 (14:34 +0300)]
Updated Belarusian translation.

11 years agoAdd GDK_AVAILABLE annotations to new API
Matthias Clasen [Sun, 15 Jul 2012 04:53:46 +0000 (00:53 -0400)]
Add GDK_AVAILABLE annotations to new API

11 years agoClear cached row sensitivity when the filter changes
Matthias Clasen [Sun, 15 Jul 2012 04:39:02 +0000 (00:39 -0400)]
Clear cached row sensitivity when the filter changes

Now that filters may affect sensitivity of rows, we need
to clear the sensitivity column from the cache when the
filter changes. This fixes the problem where selecting a
different filter does not update the sensitivity of folders
until you change directories.

11 years agoEmit row-changed notification
Matthias Clasen [Sun, 15 Jul 2012 04:37:41 +0000 (00:37 -0400)]
Emit row-changed notification

Emit row-changed when the filteredness of a visible row
changes in GtkFileSystemModel.

11 years agoTest folder filtering
Matthias Clasen [Sun, 15 Jul 2012 01:16:39 +0000 (21:16 -0400)]
Test folder filtering

Add a filter to testfilechooser that can demonstrate folder
filtering on common directories, such as Documents or Downloads.

11 years agoMake the logic for setting the sensitivity column a bit more clear
Federico Mena Quintero [Wed, 11 Jul 2012 22:50:15 +0000 (17:50 -0500)]
Make the logic for setting the sensitivity column a bit more clear

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
11 years agoMake computing and setting the visibility/filters atomic operations
Federico Mena Quintero [Wed, 11 Jul 2012 21:32:52 +0000 (16:32 -0500)]
Make computing and setting the visibility/filters atomic operations

This way we remove paired function calls (compute/set pairs), and also make
it possible to avoid computing a filter twice, as setting the visibility
depends on filteredness.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
11 years agoMake it clear that 'filtered' means 'filtered_out'
Federico Mena Quintero [Wed, 11 Jul 2012 20:47:53 +0000 (15:47 -0500)]
Make it clear that 'filtered' means 'filtered_out'

It bothers me that we call gtk_file_filter_filter(), then negate the result,
and the return *that* from node_should_be_filtered().  So, rename 'filtered'
throughout GtkFileSystemModel to 'filtered_out' to mean things that didn't
pass the filter.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
11 years agoRemove superfluous check in node_set_filtered()
Federico Mena Quintero [Wed, 11 Jul 2012 19:58:32 +0000 (14:58 -0500)]
Remove superfluous check in node_set_filtered()

This was a copy-paste leftover from node_set_visible().  Filters are not
concerned with model freezes, so node_set_filtered() does not
need to handle freezes, either.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
11 years agoDesensitize filtered folders when in folder selection mode
William Jon McCann [Sun, 8 Jul 2012 07:25:02 +0000 (03:25 -0400)]
Desensitize filtered folders when in folder selection mode

https://bugzilla.gnome.org/show_bug.cgi?id=679333

11 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Sat, 14 Jul 2012 06:11:40 +0000 (14:11 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

11 years agoCosmetic changes
Matthias Clasen [Sat, 14 Jul 2012 03:05:36 +0000 (23:05 -0400)]
Cosmetic changes

11 years agoAdd GtkMenuButton and GtkSearchEntry to types file
Matthias Clasen [Sat, 14 Jul 2012 03:04:54 +0000 (23:04 -0400)]
Add GtkMenuButton and GtkSearchEntry to types file

11 years agoAdd GtkMenuButton and GtkSearchEntry to gallery
Matthias Clasen [Sat, 14 Jul 2012 02:31:34 +0000 (22:31 -0400)]
Add GtkMenuButton and GtkSearchEntry to gallery

At the same time, remove GtkComboBoxEntry, which no longer exists.

11 years agomenu: Fix touch scrolling on menus close to the monitor edge
Carlos Garnacho [Fri, 13 Jul 2012 13:03:30 +0000 (15:03 +0200)]
menu: Fix touch scrolling on menus close to the monitor edge

Specially in the case of comboboxes, those menus could enable scrolling
even if the contents could fit in the work area, and could show blank
space in order to line up the selected item with the combobox.

When such thing happens, take into account scroll_offset when relocating
the menu contents so contents don't jump directly onscreen, and apply
it so scrolling is allowed in the direction that brings the menu onscreen
and blocked in the opposite direction.

Also, wait for cancelling the scroll operation until the touch is released
even if the scrolling arrows disappeared, so the menu item underneath isn't
selected right away.

https://bugzilla.gnome.org/show_bug.cgi?id=678113

11 years agostatusicon: Rely on GtkIconHelper for pixbuf resizes
Carlos Garnacho [Fri, 13 Jul 2012 13:57:45 +0000 (15:57 +0200)]
statusicon: Rely on GtkIconHelper for pixbuf resizes

The same is now achieved by forcing pixbuf rescaling on the icon helper

11 years agoEnsure pixbufs as entry icons get resized
Carlos Garnacho [Fri, 13 Jul 2012 13:55:44 +0000 (15:55 +0200)]
Ensure pixbufs as entry icons get resized

Entries don't expand vertically if they are given pixbufs larger
than the calculated height for the current font, resulting in
cropped icons, so force the pixbuf to be rescaled so it fits
on the entry allocated size.

https://bugzilla.gnome.org/show_bug.cgi?id=678087

11 years agoAdd API to force a GtkIconHelper pixbuf rescaling
Carlos Garnacho [Fri, 13 Jul 2012 13:54:29 +0000 (15:54 +0200)]
Add API to force a GtkIconHelper pixbuf rescaling

This API is handy in entries and status icons, where the size is
limited and independent of the pixbuf size

11 years agomenu: small code cleanup
Carlos Garnacho [Fri, 13 Jul 2012 12:49:47 +0000 (14:49 +0200)]
menu: small code cleanup

Don't check twice for the widget being realized to move
both windows

11 years agomenu: code style fix
Carlos Garnacho [Fri, 13 Jul 2012 12:47:38 +0000 (14:47 +0200)]
menu: code style fix

The newline before != looks unintentional

11 years agoicontheme: Don't assume a symbolic icon size of 16x16
Carlos Garnacho [Wed, 6 Jun 2012 16:16:05 +0000 (18:16 +0200)]
icontheme: Don't assume a symbolic icon size of 16x16

If the symbolic icon has other size than 16x16, the embedder
SVG that overrides colors would still force that size, resulting
in clipping instead of resizing. So fetch the original pixbuf
size the first time a symbolic icon is requested for a GtkIconInfo,
and use that size for the embedder SVG so it can be scaled properly
afterwards.

https://bugzilla.gnome.org/show_bug.cgi?id=677567

11 years agointrospection: mark data in GtkCallback as closure
Carlos Garnacho [Wed, 27 Jun 2012 12:51:57 +0000 (14:51 +0200)]
introspection: mark data in GtkCallback as closure

This is needed for so GtkContainer::forall() can be implemented
in non-native code, and the callback gets the passed data if
called.

https://bugzilla.gnome.org/show_bug.cgi?id=644926#c28

11 years agoSome updates
Matthias Clasen [Fri, 13 Jul 2012 11:36:31 +0000 (07:36 -0400)]
Some updates

11 years agoUpdated Indonesian translation of Property Nicks
Andika Triwidada [Fri, 13 Jul 2012 04:48:44 +0000 (11:48 +0700)]
Updated Indonesian translation of Property Nicks

11 years agoUpdated Indonesian translation
Andika Triwidada [Fri, 13 Jul 2012 03:59:13 +0000 (10:59 +0700)]
Updated Indonesian translation

11 years agowayland: Ensure we destroy the shell surface when destroying the surface
Rob Bradford [Wed, 11 Jul 2012 18:22:27 +0000 (19:22 +0100)]
wayland: Ensure we destroy the shell surface when destroying the surface

Otherwise we can try and use an invalid object that the compositor has already
deleted.

11 years agowayland: wl_shell_surface_set_popup requires a valid seat and serial
Rob Bradford [Wed, 11 Jul 2012 18:18:37 +0000 (19:18 +0100)]
wayland: wl_shell_surface_set_popup requires a valid seat and serial

If we don't have our own grab then get the grab from the parent.

11 years agowayland: Protocol update: wl_pointer_set_cursor takes a serial
Rob Bradford [Wed, 11 Jul 2012 18:17:45 +0000 (19:17 +0100)]
wayland: Protocol update: wl_pointer_set_cursor takes a serial

11 years agowayland: Protocol update: wl_shell_surface_resize and _move take serials
Rob Bradford [Wed, 11 Jul 2012 16:10:40 +0000 (17:10 +0100)]
wayland: Protocol update: wl_shell_surface_resize and _move take serials

11 years agowayland: Save the serial number for the ping event
Rob Bradford [Wed, 11 Jul 2012 16:09:23 +0000 (17:09 +0100)]
wayland: Save the serial number for the ping event

11 years agowayland: Save the serial numbers for the pointer events
Rob Bradford [Wed, 11 Jul 2012 16:08:39 +0000 (17:08 +0100)]
wayland: Save the serial numbers for the pointer events

11 years agowayland: Add internal API for handling Wayland serial numbers
Rob Bradford [Wed, 11 Jul 2012 16:06:32 +0000 (17:06 +0100)]
wayland: Add internal API for handling Wayland serial numbers

We need to keep track of the serial numbers for various API requests.

11 years agowayland: Ensure that _get_client_pointer returns a pointer
Rob Bradford [Wed, 11 Jul 2012 15:12:50 +0000 (16:12 +0100)]
wayland: Ensure that _get_client_pointer returns a pointer

The previous implementation could return a device that is a keyboard.

11 years agowayland: Port to libxkbcommon API changes
Rob Bradford [Wed, 11 Jul 2012 13:43:50 +0000 (14:43 +0100)]
wayland: Port to libxkbcommon API changes

xkb_string_to_keysym -> xkb_keysym_from_name
xkb_keysym_get_name -> xkb_keysym_get_name

11 years agowayland: Switch to new wayland cursors mechanism
Rob Bradford [Wed, 11 Jul 2012 13:43:16 +0000 (14:43 +0100)]
wayland: Switch to new wayland cursors mechanism

11 years agowayland: Protocol change: wl_buffer_damage
Rob Bradford [Wed, 11 Jul 2012 13:40:31 +0000 (14:40 +0100)]
wayland: Protocol change: wl_buffer_damage

wl_buffer_damage is no longer necessary - it is sufficient to damage the
surface that the buffer is attached to instead.

11 years agowayland: Protocol change: configure event
Rob Bradford [Wed, 11 Jul 2012 13:38:28 +0000 (14:38 +0100)]
wayland: Protocol change: configure event

The 'time' value has been removed.

11 years agowayland: Protocol change: wl_shell_surface_* take surfaces for parents
Rob Bradford [Wed, 11 Jul 2012 13:37:46 +0000 (14:37 +0100)]
wayland: Protocol change: wl_shell_surface_* take surfaces for parents

These functions used to take shell_surface objects and now take surface
objects the parents.

11 years agowayland: Remove unused variable
Rob Bradford [Wed, 11 Jul 2012 13:37:04 +0000 (14:37 +0100)]
wayland: Remove unused variable

11 years agowayland: Temporary disable/hackaround keyboard code
Rob Bradford [Wed, 11 Jul 2012 13:36:03 +0000 (14:36 +0100)]
wayland: Temporary disable/hackaround keyboard code

11 years agowayland: Port to SHM pool allocation mechanism
Rob Bradford [Wed, 11 Jul 2012 13:31:15 +0000 (14:31 +0100)]
wayland: Port to SHM pool allocation mechanism

11 years agowayland: Port to new input protocol mechanism
Rob Bradford [Wed, 11 Jul 2012 13:29:43 +0000 (14:29 +0100)]
wayland: Port to new input protocol mechanism

This replaces the wl_input_device with wl_pointer, wl_keyboard, wl_touch all
tied together under a wl_seat.

This is quite a radical change in protocol and for now keyboard handling is
disabled.

11 years agowayland: Load cursor theme using new Wayland cursor library
Rob Bradford [Wed, 11 Jul 2012 13:18:28 +0000 (14:18 +0100)]
wayland: Load cursor theme using new Wayland cursor library

This requires the SHM object be initialised - therefore this is the most
logical (if slightly ugly place.)

We also need to make sure that we do something clever to load the correct
cursor theme.

11 years agowayland: Remove unhelpful debug message
Rob Bradford [Wed, 11 Jul 2012 13:17:36 +0000 (14:17 +0100)]
wayland: Remove unhelpful debug message

11 years agowayland: Protocol change: ping event on shell_surface
Rob Bradford [Wed, 11 Jul 2012 13:15:04 +0000 (14:15 +0100)]
wayland: Protocol change: ping event on shell_surface

11 years agowayland: Update configure.ac to add now needed wayland-cursor
Rob Bradford [Wed, 11 Jul 2012 13:12:07 +0000 (14:12 +0100)]
wayland: Update configure.ac to add now needed wayland-cursor

11 years agowayland: Update to new header path for xkbcommon
Rob Bradford [Mon, 18 Jun 2012 15:02:37 +0000 (16:02 +0100)]
wayland: Update to new header path for xkbcommon

11 years agoConsistently allow -1 to mean 'append' in tree models
Matthias Clasen [Thu, 12 Jul 2012 12:35:50 +0000 (08:35 -0400)]
Consistently allow -1 to mean 'append' in tree models

Both GtkListStore and GtkTreeStore had a few methods that allowed
-1 to mean 'append' when specified as a position, but others that
demanded positive position arguments. Make this consistent by
always allowing -1.
https://bugzilla.gnome.org/show_bug.cgi?id=667808

11 years agoEnsure that XDG_DATA_HOME is created before using it
Emmanuele Bassi [Wed, 4 Jul 2012 10:41:50 +0000 (11:41 +0100)]
Ensure that XDG_DATA_HOME is created before using it

The recently-used.xbel storage for recently used files is located inside
the $XDG_DATA_HOME directory; there's no actual guarantee that the
directory has been created already, even though it's very highly
probable on any modern distribution. We should create it, along with its
intermediate parents, before constructing the file monitor that we use
to get change notifications.

https://bugzilla.gnome.org/show_bug.cgi?id=671817

https://bugzilla.gnome.org/show_bug.cgi?id=667808

11 years agoFix typo replacing action "Parse" with "Paste"
Micah Carrick [Tue, 26 Jun 2012 03:21:22 +0000 (20:21 -0700)]
Fix typo replacing action "Parse" with "Paste"

The builder XML description has an action for "win.parse" but the
application is looking for "win.paste". Rename the label to
"_Paste" and the action to "win.paste" in the window action XML.

https://bugzilla.gnome.org/show_bug.cgi?id=678829

11 years agoChange signal parameter names in GdkWindow to be valid C identifiers
Phil Clayton [Sun, 1 Jul 2012 23:35:46 +0000 (00:35 +0100)]
Change signal parameter names in GdkWindow to be valid C identifiers

https://bugzilla.gnome.org/show_bug.cgi?id=679228

11 years agoRevert "level-bar: introduce GtkLevelBar"
Matthias Clasen [Wed, 11 Jul 2012 11:15:34 +0000 (07:15 -0400)]
Revert "level-bar: introduce GtkLevelBar"

This reverts commit 126a2308ca467744178d4be3309403f6899de987.

Pushed by mistake.

11 years agoRevert "visuals: add a visual demo for GtkLevelBar"
Matthias Clasen [Wed, 11 Jul 2012 11:15:07 +0000 (07:15 -0400)]
Revert "visuals: add a visual demo for GtkLevelBar"

This reverts commit ffdd7a5e185879006d405ffd69f68ff60f5fccfa.

Pushed by mistake.

11 years agodocs: link against libgdk-3.la
Víctor Manuel Jáquez Leal [Wed, 4 Jul 2012 16:41:36 +0000 (18:41 +0200)]
docs: link against libgdk-3.la

https://bugzilla.gnome.org/show_bug.cgi?id=679409

11 years agovisuals: add a visual demo for GtkLevelBar
Cosimo Cecchi [Fri, 8 Jun 2012 22:58:51 +0000 (18:58 -0400)]
visuals: add a visual demo for GtkLevelBar

https://bugzilla.gnome.org/show_bug.cgi?id=677892

https://bugzilla.gnome.org/show_bug.cgi?id=679409

11 years agolevel-bar: introduce GtkLevelBar
Cosimo Cecchi [Tue, 29 May 2012 21:00:33 +0000 (17:00 -0400)]
level-bar: introduce GtkLevelBar

Similar to CcStrengthBar from gnome-control-center, but more generic and
with thorough CSS styling support.

https://bugzilla.gnome.org/show_bug.cgi?id=677892

11 years agoGtkApplication: Fix unsetting menu models
Matthias Clasen [Wed, 11 Jul 2012 01:24:10 +0000 (21:24 -0400)]
GtkApplication: Fix unsetting menu models

Pointed out by Zachary Dovel in
http://bugzilla.gnome.org/show_bug.cgi?id=679705

11 years agoUpdated Norwegian nynorsk translation
Kjartan Maraas [Tue, 10 Jul 2012 13:17:06 +0000 (15:17 +0200)]
Updated Norwegian nynorsk translation

11 years agoSilence the build
Matthias Clasen [Tue, 10 Jul 2012 02:12:45 +0000 (22:12 -0400)]
Silence the build

Hide gdbus-codegen behind $(AM_V_GEN) for silence and cleanliness.

11 years agoAdd missing functions to the docs
Matthias Clasen [Tue, 26 Jun 2012 19:09:12 +0000 (15:09 -0400)]
Add missing functions to the docs

://bugzilla.gnome.org/show_bug.cgi?id=678828

11 years agoOpenBSD: use G_N_ELEMENTS instead of nitems
Antoine Jacoutot [Mon, 9 Jul 2012 16:20:34 +0000 (18:20 +0200)]
OpenBSD: use G_N_ELEMENTS instead of nitems

nitems is never guaranteed to be defined in sys/params.h as it is meant
to be defined within a protected ifdef __KERNEL conditional.
Use G_N_ELEMENTS from GLib which is the proper way of doing this.

11 years agoa11y: Make lockbutton notify about state changes
Benjamin Otte [Mon, 9 Jul 2012 01:11:01 +0000 (03:11 +0200)]
a11y: Make lockbutton notify about state changes

In particular, ensure that the name of the lockbutton gets updated as
the displayed text of the lockbutton changes.

https://bugzilla.gnome.org/show_bug.cgi?id=677347

11 years agoa11y: Get lockbutton text directly
Benjamin Otte [Mon, 9 Jul 2012 00:58:22 +0000 (02:58 +0200)]
a11y: Get lockbutton text directly

Instead of letting the generic button code attempt to find the currently
displayed text, just return the text directly.

https://bugzilla.gnome.org/show_bug.cgi?id=677347

11 years agoa11y: Add separate accessible for GtkLockButton
Benjamin Otte [Mon, 9 Jul 2012 00:29:16 +0000 (02:29 +0200)]
a11y: Add separate accessible for GtkLockButton

The accessible doesn't do anything yet, this is just infrastructure
work.

11 years agoa11y: Don't mess up if column gets hidden
Benjamin Otte [Sun, 8 Jul 2012 23:28:26 +0000 (01:28 +0200)]
a11y: Don't mess up if column gets hidden

We were using a function that insisted on visible columns for computing
the potential ID of an invisible column. Not good.

https://bugzilla.gnome.org/show_bug.cgi?id=675990

11 years agoentry: guard for != NULL before unreffing the pixbuf
Cosimo Cecchi [Sun, 8 Jul 2012 04:27:30 +0000 (00:27 -0400)]
entry: guard for != NULL before unreffing the pixbuf

In gtk_entry_get_icon_pixbuf() we unreference the pixbuf that
_gtk_icon_helper_ensure_pixbuf() gives us back, since the function
doesn't return a reference, and by doing so we're able to return the
reference owned by the cached icon helper.
Since the icon helper method can return NULL though, if no icon
properties have been set on it, guard for != NULL before unreffing the
pixbuf, as that would cause a critical warning.

https://bugzilla.gnome.org/show_bug.cgi?id=679537

11 years agomodelmenu: listen for toplevel changes on the attach widget
Cosimo Cecchi [Thu, 5 Jul 2012 14:49:39 +0000 (10:49 -0400)]
modelmenu: listen for toplevel changes on the attach widget

Right now, when we create a GtkModelMenu for a GMenuModel, we listen to
changes to the menu's attach-widget to detect when a toplevel
GtkApplicationWindow becomes available to fetch actions from it.

This unfortunately breaks this simple code:

  GtkWidget *application_window = gtk_application_window_new();
  GtkWidget *menu_button = gtk_menu_button_new();
  GMenuModel *menu_model = get_menu_model();

  gtk_menu_button_set_menu_model(menu_button, menu_model);
  gtk_container_add(GTK_CONTAINER(application_window), menu_button);

Since GtkMenuButton creates a GtkModelMenu and sets itself as its attach
widget before it's added to a hierarchy containing a
GtkApplicationWindow.

Fix the bug by simply listening for changes in the window hierarchy, and
creating the menu model when the attach widget is added to an
application window.

https://bugzilla.gnome.org/show_bug.cgi?id=679454

11 years agomenu: notify attach-widget property when menu is detached
Cosimo Cecchi [Thu, 5 Jul 2012 17:21:03 +0000 (13:21 -0400)]
menu: notify attach-widget property when menu is detached

When the menu is detached, the attach-widget property changes value to
NULL, so we should notify a property change, like
gtk_menu_attach_to_widget() does.

https://bugzilla.gnome.org/show_bug.cgi?id=679454

11 years agoapplication: fix double free of app_id
Cosimo Cecchi [Thu, 5 Jul 2012 20:40:23 +0000 (16:40 -0400)]
application: fix double free of app_id

This is fallout from commit 257b42e2f9d0759cc79967034f80c571c600faf3 -
those fields were already getting freed in
gtk_application_shutdown_x11() and my commit caused crashes on quit
instead.

Thanks to Rico Tzschichholz for reporting the bug and testing this fix.

11 years agomodelmenu: set the accel group on the GtkMenu
Cosimo Cecchi [Fri, 29 Jun 2012 22:29:42 +0000 (18:29 -0400)]
modelmenu: set the accel group on the GtkMenu

Or the accelerators added for actions in the menu won't be displayed in
the menu items.

https://bugzilla.gnome.org/show_bug.cgi?id=679166

11 years agomenubutton: set DROPDOWN_MENU hint on the menu toplevel
Cosimo Cecchi [Wed, 4 Jul 2012 19:41:55 +0000 (15:41 -0400)]
menubutton: set DROPDOWN_MENU hint on the menu toplevel

So the WM can render the menu shadows correctly, omitting the top side,
in the common case the menu is rendered down from a toolbar.

https://bugzilla.gnome.org/show_bug.cgi?id=679449

11 years agogtkstyle: add a gtkstyle-fallback style class for RC colors
Cosimo Cecchi [Thu, 28 Jun 2012 22:09:33 +0000 (18:09 -0400)]
gtkstyle: add a gtkstyle-fallback style class for RC colors

As an addition to 10423726709539724be0ea19bed76ba4331af774, themes might
want to avoid using the hardcoded GTK defaults for legacy GtkStyle
values. Add a gtkstyle-fallback style class that can be used by themes
to tweak the legacy GtkStyle defaults.

https://bugzilla.gnome.org/show_bug.cgi?id=679092

11 years agoapplication: plug some memory leaks
Cosimo Cecchi [Mon, 2 Jul 2012 06:24:37 +0000 (02:24 -0400)]
application: plug some memory leaks

11 years agodocs: fix a number of typos and obsolete references
Cosimo Cecchi [Mon, 2 Jul 2012 06:19:06 +0000 (02:19 -0400)]
docs: fix a number of typos and obsolete references

11 years agoUpdated Vietnamese translation
Nguyễn Thái Ngọc Duy [Sat, 30 Jun 2012 02:42:01 +0000 (09:42 +0700)]
Updated Vietnamese translation

11 years agopo/vi: import from Damned Lies
Nguyễn Thái Ngọc Duy [Sat, 30 Jun 2012 02:31:58 +0000 (09:31 +0700)]
po/vi: import from Damned Lies

11 years agomenubutton: don't dereference NULL GdkEvent
Cosimo Cecchi [Fri, 29 Jun 2012 22:30:53 +0000 (18:30 -0400)]
menubutton: don't dereference NULL GdkEvent

Since we explictly call popup_menu with NULL when it's
keyboard-activated, we need to be careful and not access event->device
without checking for event != NULL before.

11 years agodocs: add missing GtkApplication accelerator methods to doc sections
Cosimo Cecchi [Fri, 29 Jun 2012 20:54:10 +0000 (16:54 -0400)]
docs: add missing GtkApplication accelerator methods to doc sections