]> Pileus Git - ~andy/gtk/log
~andy/gtk
12 years agoentry: avoid a mismatched cairo_save/restore
Cosimo Cecchi [Mon, 5 Dec 2011 00:57:25 +0000 (19:57 -0500)]
entry: avoid a mismatched cairo_save/restore

Leftover from GtkIconHelper migration.

12 years agoRemove unused alignment from GtkTooltip.
Paolo Borelli [Sun, 4 Dec 2011 18:20:23 +0000 (19:20 +0100)]
Remove unused alignment from GtkTooltip.

12 years agoPlug tiny leak in the css parser
Paolo Borelli [Sat, 3 Dec 2011 16:51:36 +0000 (17:51 +0100)]
Plug tiny leak in the css parser

12 years agowayland: Update to recent API changes
Kristian Høgsberg [Wed, 30 Nov 2011 15:21:27 +0000 (10:21 -0500)]
wayland: Update to recent API changes

12 years agoGtkIconView: fix a memory corruption in the drag-n-drop code
Claudio Saavedra [Thu, 1 Dec 2011 21:47:36 +0000 (22:47 +0100)]
GtkIconView: fix a memory corruption in the drag-n-drop code

You shall free with g_slice_free() what you allocate with
g_slice_new().

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

12 years agoimage: use the default icon size if no icon size is provided
Cosimo Cecchi [Thu, 1 Dec 2011 00:46:31 +0000 (19:46 -0500)]
image: use the default icon size if no icon size is provided

If no icon size is provided (e.g. when setting icon-name or stock-id
using the GObject property directly), use the default icon size. This
matches the previous GtkImage behavior.

12 years agoimage: minor cleanup
Cosimo Cecchi [Thu, 1 Dec 2011 00:46:16 +0000 (19:46 -0500)]
image: minor cleanup

12 years agoIntroduce gtk_render_insertion_cursor
Paolo Borelli [Sun, 27 Nov 2011 15:38:04 +0000 (16:38 +0100)]
Introduce gtk_render_insertion_cursor

The new function provides an API that takes the PangoLayout and index
as input params, this way it handles strong and weak cursors internally
factoring out all code duplicated in the widgets that need to render
cursors.

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

12 years agoUse the split-cursor setting for textview cursors
Paolo Borelli [Sun, 27 Nov 2011 14:12:36 +0000 (15:12 +0100)]
Use the split-cursor setting for textview cursors

Explicitely check the split-cursor setting when drawing the textview
insertion cursor instead of relying on the cursor_direction set in the
textlayout. This makes the cursor drawin code more uniform with other
widgets in preparation to refactoring the cursor drawing code in a
shared function.

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

12 years agoRework GtkTextView cursor code.
Paolo Borelli [Sat, 26 Nov 2011 22:48:10 +0000 (23:48 +0100)]
Rework GtkTextView cursor code.

Move the handling of primary/secondary cursors to gtktextdisplay, which
makes code simpler and more consistent to how GtkLabel and GtkEntry
draw cursors, which is useful in preparation to further refactoring.

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

12 years agoTiny cleanup.
Paolo Borelli [Sat, 26 Nov 2011 20:09:25 +0000 (21:09 +0100)]
Tiny cleanup.

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

12 years agoRemove draw_insertion_cursor in label and entry
Paolo Borelli [Sat, 26 Nov 2011 22:11:08 +0000 (23:11 +0100)]
Remove draw_insertion_cursor in label and entry

Remove the the draw_insertion_cursor wrapper which just converts from
GtkTextDir to PangoDirection

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

12 years agoimage: simplify code
Cosimo Cecchi [Thu, 1 Dec 2011 00:06:21 +0000 (19:06 -0500)]
image: simplify code

We can unconditionally call into the icon helper methods now that we
removed the g_return_val_if_fail() checks.

12 years agoentry: simplify code
Cosimo Cecchi [Thu, 1 Dec 2011 00:05:34 +0000 (19:05 -0500)]
entry: simplify code

We can unconditionally call into the icon helper methods now that we
removed the g_return_val_if_fail() checks.

12 years agoicon-helper: remove useless checks
Cosimo Cecchi [Thu, 1 Dec 2011 00:04:17 +0000 (19:04 -0500)]
icon-helper: remove useless checks

When we change storage type, we always clear the rest of the object, so
these checks do not add any safety.

12 years agoicon-helper: don't warn out when the icon size is GTK_ICON_SIZE_INVALID
Cosimo Cecchi [Wed, 30 Nov 2011 23:32:01 +0000 (18:32 -0500)]
icon-helper: don't warn out when the icon size is GTK_ICON_SIZE_INVALID

We can call ensure_icon_size() for an empty image; don't warn out in
that case, but just return a zero width.

12 years agoicon-helper: don't reset pixel_size when clearing the helper
Cosimo Cecchi [Wed, 30 Nov 2011 23:15:05 +0000 (18:15 -0500)]
icon-helper: don't reset pixel_size when clearing the helper

Don't reset the pixel size when clearing the helper; pixel-size is e.g a
property of GtkImage, which is stable unless explicitly set.

12 years agoentry: always prepare the style context when using it for entry icons
Cosimo Cecchi [Wed, 30 Nov 2011 16:40:32 +0000 (11:40 -0500)]
entry: always prepare the style context when using it for entry icons

Make sure to always prepare the entry's style context for the entry icon
style when passing it to GtkIconHelper.

12 years agocellrendererpix: make sure to select the default helper as a fallback
Cosimo Cecchi [Wed, 30 Nov 2011 16:27:24 +0000 (11:27 -0500)]
cellrendererpix: make sure to select the default helper as a fallback

If we don't have expander pixbufs, select the default helper to render
the icon, even if the cell is an expander. This mimics what the old code
did.

12 years agocellrendererpix: port to GtkIconHelper
Cosimo Cecchi [Wed, 30 Nov 2011 15:30:32 +0000 (10:30 -0500)]
cellrendererpix: port to GtkIconHelper

12 years agoentry: port to GtkIconHelper
Cosimo Cecchi [Wed, 30 Nov 2011 14:43:09 +0000 (09:43 -0500)]
entry: port to GtkIconHelper

12 years agodnd: port to GtkIconHelper
Cosimo Cecchi [Wed, 30 Nov 2011 05:06:13 +0000 (00:06 -0500)]
dnd: port to GtkIconHelper

12 years agoimage: port to GtkIconHelper
Cosimo Cecchi [Wed, 30 Nov 2011 04:06:37 +0000 (23:06 -0500)]
image: port to GtkIconHelper

Use newly introduced GtkIconHelper to render pixbufs in GtkImage.

12 years agoicon-helper: add GtkIconHelper private object
Cosimo Cecchi [Wed, 30 Nov 2011 03:26:19 +0000 (22:26 -0500)]
icon-helper: add GtkIconHelper private object

GtkIconHelper is a helper object to easily obtain a pixbuf from
different icon sources (e.g. a GIcon, an icon name, a stock id, ...).

Code is ported from GtkImage, which will be adapted in the next commit.

12 years agoGtkCssProvider: don't segfault when CSS file is not found
Stef Walter [Tue, 22 Nov 2011 07:13:04 +0000 (08:13 +0100)]
GtkCssProvider: don't segfault when CSS file is not found

 * Fix null dereference in gtk_css_provider_take_error()
 * And another in gtk_css_provider_emit_error()

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

12 years agoXI2: Push error traps around XIQueryDevice calls
Matthias Clasen [Wed, 30 Nov 2011 05:16:43 +0000 (00:16 -0500)]
XI2: Push error traps around XIQueryDevice calls

This may help against the crashes at resume time that some
people have been hitting when input devices mysteriously
disappear.

12 years ago[GtkFileChooserDefault] Don't destroy and re-create the filename entry
Federico Mena Quintero [Tue, 29 Nov 2011 21:08:25 +0000 (15:08 -0600)]
[GtkFileChooserDefault] Don't destroy and re-create the filename entry

This is a leftover from the big rework to remove the expanded/collapsed mode
in Save mode.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years ago[GtkPathBar] Remove unused error argument
Federico Mena Quintero [Tue, 29 Nov 2011 21:07:01 +0000 (15:07 -0600)]
[GtkPathBar] Remove unused error argument

It used to be that _gtk_path_bar_set_file() would return an error if
it wasn't able to switch to the specified file, but that hasn't been
the case for a long while now, since the file chooser became async.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoAvoid shadowing a variable
Paolo Borelli [Tue, 29 Nov 2011 20:14:24 +0000 (21:14 +0100)]
Avoid shadowing a variable

Move bg_color variable to an inner scope.

12 years ago[path-bar] Add some comments to explain the async recursion on an I/O callback
Federico Mena Quintero [Mon, 28 Nov 2011 18:03:02 +0000 (12:03 -0600)]
[path-bar] Add some comments to explain the async recursion on an I/O callback

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years ago[path-bar] Only reset the children's styles if the children actually changed
Federico Mena Quintero [Mon, 28 Nov 2011 17:49:35 +0000 (11:49 -0600)]
[path-bar] Only reset the children's styles if the children actually changed

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoRemove unused argument
Federico Mena Quintero [Mon, 28 Nov 2011 17:34:37 +0000 (11:34 -0600)]
Remove unused argument

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agofilechooserdefault: Don't unref value twice
Benjamin Otte [Tue, 29 Nov 2011 19:39:21 +0000 (20:39 +0100)]
filechooserdefault: Don't unref value twice

Double unref was introduced in eb02dacb370e8b4e6ef62328d0c09673b1234b32

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

12 years agotreeview: Properly change cursor when row is collapsed
Benjamin Otte [Sat, 26 Nov 2011 23:06:53 +0000 (00:06 +0100)]
treeview: Properly change cursor when row is collapsed

Previously, when the cursor was a descendant of the collapsed row,
the cursor path was set to the collapsed row, but this was not
communicated via cursor-changed events.

12 years agotreeview: Reorder code a bit
Benjamin Otte [Sat, 26 Nov 2011 22:49:05 +0000 (23:49 +0100)]
treeview: Reorder code a bit

This is mainly in preparation for the next commit, but also to reorder
the code to
1) prepare modification of tree
2) modify tree
3) emit signals

12 years agotests: Add new test that is currently failing
Mike Gorse [Sat, 26 Nov 2011 22:08:09 +0000 (23:08 +0100)]
tests: Add new test that is currently failing

12 years agotreeview: Simplify code
Benjamin Otte [Sat, 26 Nov 2011 02:36:45 +0000 (03:36 +0100)]
treeview: Simplify code

Since the changes in commit 2b3de3dd this simplification is possible.

12 years agotreeview: Rename function
Benjamin Otte [Sat, 26 Nov 2011 01:54:34 +0000 (02:54 +0100)]
treeview: Rename function

_gtk_tree_view_find_path() was not a name that not really described what
the function does. And I kept forgetting it. Also, it took the tree view
as an argument and that was completely unnecessary.

12 years agotests: Add automatic expanding/collapsing
Benjamin Otte [Fri, 25 Nov 2011 19:56:07 +0000 (20:56 +0100)]
tests: Add automatic expanding/collapsing

Makes the test test even more stuff.

12 years agotests: Fix the iter stepping code
Benjamin Otte [Fri, 25 Nov 2011 19:54:48 +0000 (20:54 +0100)]
tests: Fix the iter stepping code

The old code actually was wrong and could cause assertions and crashes,
in particular when stepping out of a deep tree back onto the highest
layer.

12 years agotests: Check that the cursor keeps up to date
Benjamin Otte [Fri, 25 Nov 2011 15:31:34 +0000 (16:31 +0100)]
tests: Check that the cursor keeps up to date

This actually demonstrates a bug where the treeview doesn't emit a
cursor-changed signal when the cursor row is deleted.

12 years agoreftests: Fix test for border-image addition
Benjamin Otte [Fri, 25 Nov 2011 14:46:23 +0000 (15:46 +0100)]
reftests: Fix test for border-image addition

12 years agowidget-factory: make one of the two spinbuttons active
Cosimo Cecchi [Tue, 29 Nov 2011 15:51:29 +0000 (10:51 -0500)]
widget-factory: make one of the two spinbuttons active

12 years agothemingengine: fix a typo
Cosimo Cecchi [Mon, 28 Nov 2011 22:40:32 +0000 (17:40 -0500)]
themingengine: fix a typo

12 years agothemingengine: move code to make switch-case more clear
Cosimo Cecchi [Mon, 28 Nov 2011 22:33:19 +0000 (17:33 -0500)]
themingengine: move code to make switch-case more clear

Code is more readable with the default case as the last one in the
switch block.

12 years agoUpdated Russian translation
Yuri Myasoedov [Mon, 28 Nov 2011 20:08:32 +0000 (00:08 +0400)]
Updated Russian translation

12 years agopathbar: add the linked style class to GtkPathBar
Cosimo Cecchi [Mon, 28 Nov 2011 19:41:02 +0000 (14:41 -0500)]
pathbar: add the linked style class to GtkPathBar

12 years agostylecontext: add GTK_STYLE_CLASS_LINKED
Cosimo Cecchi [Mon, 28 Nov 2011 19:40:04 +0000 (14:40 -0500)]
stylecontext: add GTK_STYLE_CLASS_LINKED

"linked" is a style class for linked areas, such as a box containing
buttons belonging to the same control.

12 years agogtk/gtkeditable: Some docs fixes
Javier Jardón [Mon, 28 Nov 2011 15:23:00 +0000 (15:23 +0000)]
gtk/gtkeditable: Some docs fixes

12 years agospinbutton: redesign to use an horizontal layout
Cosimo Cecchi [Wed, 23 Nov 2011 03:08:59 +0000 (22:08 -0500)]
spinbutton: redesign to use an horizontal layout

Rewrite GtkSpinButton to use a touchscreen friendly horizontal layout.
Other features include:
- support for theming buttons with nth-child
- full support for RTL
- use + and - symbolic icons instead of arrows
- general streamlining and cleanup of a lot of related code

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

12 years agowin32-theme: Make tabs look better
Alexander Larsson [Mon, 28 Nov 2011 09:06:38 +0000 (10:06 +0100)]
win32-theme: Make tabs look better

12 years agoSupport border-image in theme_engine_render_frame_gap
Alexander Larsson [Mon, 28 Nov 2011 09:05:29 +0000 (10:05 +0100)]
Support border-image in theme_engine_render_frame_gap

This is similar to the normal frame rendering, but has a clip
region applied for the gap.

12 years agowin32-theme: Add some margins on GtkScale trought to look like win32
Alexander Larsson [Mon, 28 Nov 2011 08:14:13 +0000 (09:14 +0100)]
win32-theme: Add some margins on GtkScale trought to look like win32

12 years agowin32-theme: Support custom margins in win32 theme parts
Alexander Larsson [Mon, 28 Nov 2011 08:13:54 +0000 (09:13 +0100)]
win32-theme: Support custom margins in win32 theme parts

12 years agoFix up makefile rules for parallel builds
Alexander Larsson [Mon, 28 Nov 2011 08:12:28 +0000 (09:12 +0100)]
Fix up makefile rules for parallel builds

The gtkwin32css.h generation code used a temporary filename that was also
used by some other files, which is racy. Use a unique one.

12 years agowin32-theme: Make syntax for mixing theme parts more regular
Alexander Larsson [Mon, 28 Nov 2011 07:39:15 +0000 (08:39 +0100)]
win32-theme: Make syntax for mixing theme parts more regular

This lets us extend the argument list better

12 years agowin32-theme: Make notebook tabs slightly better
Alexander Larsson [Fri, 25 Nov 2011 15:43:51 +0000 (16:43 +0100)]
win32-theme: Make notebook tabs slightly better

12 years agowin32-theme: Fix background colors for new bg drawing
Alexander Larsson [Fri, 25 Nov 2011 15:40:25 +0000 (16:40 +0100)]
win32-theme: Fix background colors for new bg drawing

12 years agoFix up background-origin now that we correctly handle the background color
Alexander Larsson [Thu, 24 Nov 2011 21:11:35 +0000 (22:11 +0100)]
Fix up background-origin now that we correctly handle the background color

12 years agocss: Always draw the bg color under the bg image
Alexander Larsson [Thu, 24 Nov 2011 21:11:00 +0000 (22:11 +0100)]
css: Always draw the bg color under the bg image

12 years agoReftest background-origin with various background-clip values
Alexander Larsson [Thu, 24 Nov 2011 21:00:49 +0000 (22:00 +0100)]
Reftest background-origin with various background-clip values

12 years agoUpdate background-area reftest for background-clip
Alexander Larsson [Thu, 24 Nov 2011 20:01:16 +0000 (21:01 +0100)]
Update background-area reftest for background-clip

12 years agoImplement background-clip and background-origin
Alexander Larsson [Thu, 24 Nov 2011 20:00:57 +0000 (21:00 +0100)]
Implement background-clip and background-origin

12 years agoAdd GtkCssArea enum
Alexander Larsson [Thu, 24 Nov 2011 19:57:02 +0000 (20:57 +0100)]
Add GtkCssArea enum

This will be used for background-clip and background-origin css properties.

12 years agoAdd reftest to test border-style: none
Alexander Larsson [Thu, 24 Nov 2011 17:25:08 +0000 (18:25 +0100)]
Add reftest to test border-style: none

From the css docs at http://www.w3.org/TR/CSS2/box.html:

8.5.1 Border width: 'border-top-width', 'border-right-width', 'border-bottom-width',
'border-left-width', and 'border-width'

Computed value:   absolute length; '0' if the border style is 'none' or 'hidden'

So, if i specify border-style none and a border-width > 0 that should give the
same result as border-width 0.

12 years agoMake computed value of border-width 0 if border-style none
Alexander Larsson [Thu, 24 Nov 2011 17:38:53 +0000 (18:38 +0100)]
Make computed value of border-width 0 if border-style none

From the css docs at http://www.w3.org/TR/CSS2/box.html:

    8.5.1 Border width: 'border-top-width', 'border-right-width', 'border-bottom-width',
    'border-left-width', and 'border-width'

    Computed value:   absolute length; '0' if the border style is 'none' or 'hidden'

12 years agocss: Convert border style parsing to use enums
Alexander Larsson [Fri, 25 Nov 2011 14:35:13 +0000 (15:35 +0100)]
css: Convert border style parsing to use enums

12 years agoRename GTK_CSS_REPEAT_STYLE_NONE to GTK_CSS_REPEAT_STYLE_STRETCH
Alexander Larsson [Fri, 25 Nov 2011 14:30:10 +0000 (15:30 +0100)]
Rename GTK_CSS_REPEAT_STYLE_NONE to GTK_CSS_REPEAT_STYLE_STRETCH

This is a private type, and the CSS default value is "stretch", which
is how we were parsing and printing NONE anyway.

With this fix we can use the enum stuff for printing/parsing

12 years agocss: Use enum parsing for background repeat style
Alexander Larsson [Fri, 25 Nov 2011 13:36:27 +0000 (14:36 +0100)]
css: Use enum parsing for background repeat style

12 years agocss: Break out enum parse/print helper
Alexander Larsson [Fri, 25 Nov 2011 13:35:11 +0000 (14:35 +0100)]
css: Break out enum parse/print helper

We need this to parse non-GValue enums

12 years agocss: Parse enums with new case-insensitive helper
Alexander Larsson [Fri, 25 Nov 2011 13:30:47 +0000 (14:30 +0100)]
css: Parse enums with new case-insensitive helper

12 years agocss: Add _gtk_css_parser_try_enum
Alexander Larsson [Fri, 25 Nov 2011 13:11:56 +0000 (14:11 +0100)]
css: Add _gtk_css_parser_try_enum

This helps parsing GType enums in CSS, properly handling
CSS being case insensitive.

12 years agoAdd generation of private g-types for private headers
Alexander Larsson [Fri, 25 Nov 2011 12:07:43 +0000 (13:07 +0100)]
Add generation of private g-types for private headers

This starts with just the gtkcsstypesprivate.h header

12 years agoreftests: Make sure border-image-gradient keeps working
Benjamin Otte [Fri, 25 Nov 2011 14:11:42 +0000 (15:11 +0100)]
reftests: Make sure border-image-gradient keeps working

.. even with more advanced themes.

12 years agotests: Add testtreechanging
Benjamin Otte [Fri, 25 Nov 2011 13:41:11 +0000 (14:41 +0100)]
tests: Add testtreechanging

It's just a treestore going crazy while the treeview has to keep up.

12 years agowin32: Make all GDK_WINDOW_TEMP always on top
Alexander Larsson [Fri, 25 Nov 2011 10:21:26 +0000 (11:21 +0100)]
win32: Make all GDK_WINDOW_TEMP always on top

This makes menus, popups and tooltips show above the windows
task bar.

12 years agotests: Add prop editors to testtreeview
Benjamin Otte [Thu, 24 Nov 2011 17:07:23 +0000 (18:07 +0100)]
tests: Add prop editors to testtreeview

It tests treeviews, so we'd better be able to edit them :)

12 years agoreftests: Mark windows as popups
Benjamin Otte [Thu, 24 Nov 2011 17:06:08 +0000 (18:06 +0100)]
reftests: Mark windows as popups

Improves performance, gets rid of resize grip.

12 years agoa11y: Implement ref_state_set using the new APIs
Benjamin Otte [Thu, 24 Nov 2011 00:59:18 +0000 (01:59 +0100)]
a11y: Implement ref_state_set using the new APIs

Various tiny semantic changes in here.

The big fix is that we consider every cell as visible and as showing if
the treeview is mapped.
This was also fixed in the tree dump test.

12 years agoa11y: Add get_renderer_state() to cell accessibles
Benjamin Otte [Thu, 24 Nov 2011 00:55:38 +0000 (01:55 +0100)]
a11y: Add get_renderer_state() to cell accessibles

Accessibles can use this function to query the state that their row
would be rendered with.

12 years agoa11y: Add _gtk_cell_accessible_set_cell_data()
Benjamin Otte [Wed, 23 Nov 2011 16:35:00 +0000 (17:35 +0100)]
a11y: Add _gtk_cell_accessible_set_cell_data()

See the function documentation for details.

Also included is the implementation for the treeview, but no users yet.

12 years agotreeview: Notify a11y about reordered rows
Benjamin Otte [Wed, 23 Nov 2011 02:21:57 +0000 (03:21 +0100)]
treeview: Notify a11y about reordered rows

That way, no more signal handler is needed in the a11y code. Plus, we
avoid needless signal emissions for rows we don't care about.

12 years agoa11y: Don't create fake cell renderers
Benjamin Otte [Wed, 23 Nov 2011 16:54:49 +0000 (17:54 +0100)]
a11y: Don't create fake cell renderers

12 years agobuild: Add gmodule-2.0 dependency for gtk-query-immodules-3.0
Florian Müllner [Thu, 24 Nov 2011 15:31:47 +0000 (16:31 +0100)]
build: Add gmodule-2.0 dependency for gtk-query-immodules-3.0

12 years agowin32-theme: Fix up radio and menus in various states
Alexander Larsson [Thu, 24 Nov 2011 10:40:36 +0000 (11:40 +0100)]
win32-theme: Fix up radio and menus in various states

This makes all states in widget-factory look ok

12 years agowin32-theme: Theme column headers
Alexander Larsson [Thu, 24 Nov 2011 08:53:39 +0000 (09:53 +0100)]
win32-theme: Theme column headers

12 years agoprop-editor: Implement property editing for GdkRGBA properties
Christian Persch [Mon, 21 Nov 2011 13:07:06 +0000 (14:07 +0100)]
prop-editor: Implement property editing for GdkRGBA properties

Bug #664467.

12 years agoRevert "tests: use GdkRGBA instead GdkColor"
Christian Persch [Mon, 21 Nov 2011 13:03:01 +0000 (14:03 +0100)]
Revert "tests: use GdkRGBA instead GdkColor"

This reverts commit 85747da97238dc101f92cd8241aa7aea44f35789.

Conflicts:

tests/prop-editor.c

Bug #664467.

12 years agocolor-button: Notify "color" and "alpha" properties when changing the rgba
Christian Persch [Mon, 21 Nov 2011 13:19:51 +0000 (14:19 +0100)]
color-button: Notify "color" and "alpha" properties when changing the rgba

Bug #664469.

12 years agoGtkIconView: Fix a segfault
Matthias Clasen [Wed, 23 Nov 2011 22:49:46 +0000 (17:49 -0500)]
GtkIconView: Fix a segfault

Keynav on an empty iconview was causing segfaults. This
was reported in https://bugzilla.gnome.org/show_bug.cgi?id=664456

12 years agobgo#662814 - Don't print a g_warning() when GtkRecentManager can't find a file
Federico Mena Quintero [Wed, 23 Nov 2011 15:44:26 +0000 (09:44 -0600)]
bgo#662814 - Don't print a g_warning() when GtkRecentManager can't find a file

Also, *do* add the file to the recently-used list, even if the file does not
exist yet.  This is used from the Save dialog, so even shitty apps which don't
add the file to GtkRecentManager, will get the file added from the Save dialog.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agowidgetpath: correctly print the siblings index
Cosimo Cecchi [Wed, 23 Nov 2011 16:22:30 +0000 (11:22 -0500)]
widgetpath: correctly print the siblings index

In gtk_widget_path_to_string() we were counting siblings from zero
instead of one, resulting in confusing output.

12 years agoframe: don't access padding before it's initialized
Cosimo Cecchi [Wed, 23 Nov 2011 16:21:29 +0000 (11:21 -0500)]
frame: don't access padding before it's initialized

Move padding initialization before its first access.

12 years agogtk-demo: Fix segfault in editable cells demo
Benjamin Otte [Tue, 22 Nov 2011 22:27:40 +0000 (23:27 +0100)]
gtk-demo: Fix segfault in editable cells demo

The strings can be freed when edting the description column. This does
not work with constant strings.

12 years agorbtree: Rewrite to not lose node order
Benjamin Otte [Tue, 22 Nov 2011 22:15:53 +0000 (23:15 +0100)]
rbtree: Rewrite to not lose node order

_gtk_rbtree_reorder() was moving the node's data while reordering. As we
use the node pointer in the a11y code as a hash key, this didn't work.

So this rewrite changes that. As a bonus, it is less code and faster.
Woohoo!

12 years agotests: Add test for _gtk_rbtree_reorder()
Benjamin Otte [Tue, 22 Nov 2011 22:14:09 +0000 (23:14 +0100)]
tests: Add test for _gtk_rbtree_reorder()

12 years agotests: Speed up rbtree test
Benjamin Otte [Tue, 22 Nov 2011 14:35:53 +0000 (15:35 +0100)]
tests: Speed up rbtree test

We don't need so many tree consistency checks while creating when the
test is about something else.

12 years agoFix a typo
Matthias Clasen [Tue, 22 Nov 2011 19:55:46 +0000 (14:55 -0500)]
Fix a typo

12 years agoRevert "Clean up includes"
Matthias Clasen [Tue, 22 Nov 2011 18:41:59 +0000 (13:41 -0500)]
Revert "Clean up includes"

This reverts commit c5e4af761c9db702b9bbf0740404c204e5b086d2.

12 years agoMove pangoft2 to Requires.private
Matthias Clasen [Tue, 22 Nov 2011 14:42:31 +0000 (09:42 -0500)]
Move pangoft2 to Requires.private

We have pango in Requires anyway, and this is just so we
can call pangofc api ourselves.