]> Pileus Git - ~andy/gtk/log
~andy/gtk
12 years agoGTK PrintToFile settings
Timothy Arceri [Tue, 6 Mar 2012 10:15:01 +0000 (21:15 +1100)]
GTK PrintToFile settings

To make setting output directory and filename simpler in the PrintToFile
dialog two gtkprintsettings have been added GTK_PRINT_SETTINGS_OUTPUT_DIR
 and GTK_PRINT_SETTINGS_OUTPUT_BASENAME.

This will reduce the code needed to implement a better name than "output.pdf"
and actually makes more sense than the existing setting
GTK_PRINT_SETTINGS_OUTPUT_URI which doesn't work seamlessly with
GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT like the new settings do.

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

12 years agoFix links to developer.gnome.org
Frédéric Péters [Fri, 11 May 2012 12:17:19 +0000 (14:17 +0200)]
Fix links to developer.gnome.org

12 years agoquartz: Ignore events from all mouse buttons past the resize boundary
Kristian Rietveld [Sun, 13 May 2012 15:57:59 +0000 (17:57 +0200)]
quartz: Ignore events from all mouse buttons past the resize boundary

Before, right click events were still let through into GDK. In this
case, also middle/right button events with x-coordinates in the range
[-3, 0] are processed, resulting in failures/crashes in the window
finding code because no GdkWindows are present in this range.

12 years agoRemove lies
Matthias Clasen [Fri, 11 May 2012 21:42:47 +0000 (17:42 -0400)]
Remove lies

We forgot the documentation when we simplified the GtkApplication
session api.

12 years agoUpdated POTFILES.skip
Piotr Drąg [Fri, 11 May 2012 20:01:19 +0000 (22:01 +0200)]
Updated POTFILES.skip

12 years agovisuals: add some visuals UI files for h/v linked button boxes
Cosimo Cecchi [Fri, 11 May 2012 15:37:56 +0000 (11:37 -0400)]
visuals: add some visuals UI files for h/v linked button boxes

12 years agobox: set orientation style classes when setting orientation
Cosimo Cecchi [Fri, 11 May 2012 15:36:05 +0000 (11:36 -0400)]
box: set orientation style classes when setting orientation

Since we override the property, we have to call the internal helper
manually.

12 years agocssprovider: Remove unused members from scanner
Benjamin Otte [Wed, 18 Apr 2012 20:19:30 +0000 (22:19 +0200)]
cssprovider: Remove unused members from scanner

Now that the parser takes care of the file, we don't need to keep track
of it ourselves anymore.

12 years agocsssection: Remove file argument from constructor
Benjamin Otte [Wed, 18 Apr 2012 20:15:32 +0000 (22:15 +0200)]
csssection: Remove file argument from constructor

The parser has the file available.

12 years agostyleproperty: Remove base argument
Benjamin Otte [Wed, 18 Apr 2012 20:04:44 +0000 (22:04 +0200)]
styleproperty: Remove base argument

from _gtk_style_property_parse_value(). The GtkCssParser takes care of
that now.

12 years agocssstyleproperty: Remove base argument
Benjamin Otte [Wed, 18 Apr 2012 19:58:22 +0000 (21:58 +0200)]
cssstyleproperty: Remove base argument

from parse functions.

12 years agocssstylefuncs: Remove base argument
Benjamin Otte [Wed, 18 Apr 2012 19:52:36 +0000 (21:52 +0200)]
cssstylefuncs: Remove base argument

The GtkCssParser keeps track of the base file now.

12 years agocssshorthand: Don't pass base file anymore
Benjamin Otte [Wed, 18 Apr 2012 19:48:05 +0000 (21:48 +0200)]
cssshorthand: Don't pass base file anymore

It's part of the parser now.

12 years agocssimage: No need to pass base file anymore
Benjamin Otte [Wed, 18 Apr 2012 19:44:08 +0000 (21:44 +0200)]
cssimage: No need to pass base file anymore

The file is now part of the GtkCssParser

12 years agocssparser: Change APIs that work with files
Benjamin Otte [Wed, 18 Apr 2012 17:43:24 +0000 (19:43 +0200)]
cssparser: Change APIs that work with files

Now that we keep track of the parser's file, we don't require it to be
passed anymore.

12 years agocssparser: Keep track of the file
Benjamin Otte [Wed, 18 Apr 2012 14:54:04 +0000 (16:54 +0200)]
cssparser: Keep track of the file

12 years agoRevert "cssprovider: Remove unused members from scanner"
Benjamin Otte [Fri, 11 May 2012 14:41:25 +0000 (16:41 +0200)]
Revert "cssprovider: Remove unused members from scanner"

This reverts commit b501e64a8a78e78c49b0abd1f34fc554ccacfd65.

12 years agocssprovider: Remove unused members from scanner
Benjamin Otte [Wed, 18 Apr 2012 20:19:30 +0000 (22:19 +0200)]
cssprovider: Remove unused members from scanner

Now that the parser takes care of the file, we don't need to keep track
of it ourselves anymore.

12 years ago[broadway] Fixup build
Alexander Larsson [Fri, 11 May 2012 12:49:15 +0000 (14:49 +0200)]
[broadway] Fixup build

Seems the return value of device_query_state was removed, it was
TRUE always anyway.

12 years agogtk: Fix warnings for some uses of GtkLinkButton
Bastien Nocera [Thu, 10 May 2012 14:15:43 +0000 (15:15 +0100)]
gtk: Fix warnings for some uses of GtkLinkButton

Not setting a URI but catching the activate-link signal is a
valid use of GtkLinkButton, but we shouldn't allow showing a
popup menu which offers to copy the URI if there's none.

12 years agoquartz: add a special case to GtkIMContextSimply for entering '"'
Michael Natterer [Thu, 10 May 2012 08:57:16 +0000 (10:57 +0200)]
quartz: add a special case to GtkIMContextSimply for entering '"'

Turn dead_doubleacute plus space into '"' and not into a double
acute because that's the way to enter double quotes on the
US-International keyboard layout.
(cherry picked from commit 71164e57b9b999f07a613806058ee87b9cbf882d)

12 years agoiconview: Don't draw unallocated items
Benjamin Otte [Wed, 9 May 2012 12:23:10 +0000 (14:23 +0200)]
iconview: Don't draw unallocated items

This is more a workaround for Clutter-GTK than anything else. Most of
all, it makes gnome-boxes start again.

12 years agol10n: updated Italian translation
Luca Ferretti [Wed, 9 May 2012 09:48:36 +0000 (11:48 +0200)]
l10n: updated Italian translation

12 years agoquartz: handle yet another dead tilde variant
Michael Natterer [Tue, 8 May 2012 14:07:31 +0000 (16:07 +0200)]
quartz: handle yet another dead tilde variant

which is delivered by the US-International keyboard layout.

12 years agogtk: Add private headers to EXTRA_DIST
Rico Tzschichholz [Tue, 8 May 2012 07:16:51 +0000 (09:16 +0200)]
gtk: Add private headers to EXTRA_DIST

This got lost with 985881ffcc315e20012a42dfba6cf5ab0046a92c

12 years agoiconview: Only compute item sizes in one place
Benjamin Otte [Tue, 8 May 2012 01:57:07 +0000 (03:57 +0200)]
iconview: Only compute item sizes in one place

Code was using different places to compute the icon size when layouting
and when doing size requests. This resulted in non-matching behavior in
obscure cases. And that lead to iconviews that were too small.

12 years agoiconview: Bring back per-row contexts
Benjamin Otte [Mon, 7 May 2012 23:53:48 +0000 (01:53 +0200)]
iconview: Bring back per-row contexts

Apparently GtkCellAreaContext is broken enough to not allow multiple
allocations...

12 years agoiconview: Move wrap width adjustment to size request code
Benjamin Otte [Mon, 7 May 2012 23:51:51 +0000 (01:51 +0200)]
iconview: Move wrap width adjustment to size request code

12 years agostylecontext: Make queue_invalidate() always work
Benjamin Otte [Mon, 7 May 2012 23:35:00 +0000 (01:35 +0200)]
stylecontext: Make queue_invalidate() always work

Handle both the case where a widget is set and also the case where a
widget path is set.

12 years agoimmulticontext: Always check if the global context id changed
Rui Matos [Sun, 29 Apr 2012 00:44:23 +0000 (02:44 +0200)]
immulticontext: Always check if the global context id changed

This makes sure that if the gtk-im-module setting changes we update
our internal state immediately on the next event whichever it is.

In particular this fixes the case of the gtk-im-module setting
changing while the user is typing and the slave context remaining the
same, effectively ignoring the setting change.

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

12 years agoinfobar: set default border/spacing on action/content areas
Cosimo Cecchi [Mon, 7 May 2012 21:34:46 +0000 (17:34 -0400)]
infobar: set default border/spacing on action/content areas

Commit cdf473ec100d23ea6a9a8750ad301307a116b674 deprecated the style
properties associated with the container border width and box spacing of
the action and content areas, in favour of using
gtk_container_set_border_width() and gtk_box_set_spacing() on the
widgets themselves, but failed to initialize those values to the
defaults.

12 years ago[Bug 675501] gtkquartz.h is not in the gtk+-3.5.2.tar.xz archive
John Ralls [Mon, 7 May 2012 21:58:10 +0000 (14:58 -0700)]
[Bug 675501] gtkquartz.h is not in the gtk+-3.5.2.tar.xz archive

Rearrange the gtk_private_h_sources so that they're all added to EXTRA_DIST instead of only the ones included in the current build.

12 years agoRename gtkquartz-menu to gtkmodelmenu-quartz
John Ralls [Sat, 5 May 2012 20:11:10 +0000 (13:11 -0700)]
Rename gtkquartz-menu to gtkmodelmenu-quartz

Makes name consistent with other quartz-only modules and makes it clear that this works with the GMenuModel system rather than the older GtkMenu system.

12 years agobgo#675421 - Set the wm_role on GtkFileChooserDialog
Federico Mena Quintero [Mon, 7 May 2012 20:42:32 +0000 (15:42 -0500)]
bgo#675421 - Set the wm_role on GtkFileChooserDialog

The window's role is 'GtkFileChooserDialog', so that window managers can match it
for positioning.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agosizerequest: Improve warning message
Benjamin Otte [Mon, 7 May 2012 15:37:36 +0000 (17:37 +0200)]
sizerequest: Improve warning message

Actually print out the function we're warning about

12 years agoiconview: Fix negative natural size request on empty iconview
Benjamin Otte [Mon, 7 May 2012 15:12:36 +0000 (17:12 +0200)]
iconview: Fix negative natural size request on empty iconview

12 years agobroadway: Fix vfunc prototype
Benjamin Otte [Mon, 7 May 2012 02:12:29 +0000 (04:12 +0200)]
broadway: Fix vfunc prototype

12 years agobuild: Don't invoke pkg-config directly
Benjamin Otte [Mon, 7 May 2012 01:14:35 +0000 (03:14 +0200)]
build: Don't invoke pkg-config directly

Instead, always use PKG_CHECK_MODULES(). That macro actually gets it
right. In particular the erroring out part when you miss xkbcommon or
wayland-client.

12 years agoiconview: Don't expand items to more than natural size
Benjamin Otte [Sun, 6 May 2012 23:35:00 +0000 (01:35 +0200)]
iconview: Don't expand items to more than natural size

This ensures that items stay left-aligned instead of slowly expanding into
empty space when widening the iconview. It's also what the iconview did
pre-refactoring.

Note that for cases where natural width != minimum width, the cells
might still expand and shrink back.

12 years agotests: Remove unused include
Benjamin Otte [Sun, 6 May 2012 22:16:45 +0000 (00:16 +0200)]
tests: Remove unused include

Fixes build

12 years agoiconview: Redo layouting
Benjamin Otte [Sun, 6 May 2012 03:39:58 +0000 (05:39 +0200)]
iconview: Redo layouting

12 years agoiconview: Respect item width in size requestr code
Benjamin Otte [Sun, 6 May 2012 01:21:18 +0000 (03:21 +0200)]
iconview: Respect item width in size requestr code

12 years agoiconview: Reduce complexity of sizing code
Benjamin Otte [Sat, 5 May 2012 22:51:14 +0000 (00:51 +0200)]
iconview: Reduce complexity of sizing code

Always assume max-columns and min-rows. The old approach was kinda
insane.

As an example, try to write an algorithm that optimizes the minimum size
for infinite (take a reasonably large number like 2520) word-wrapped
Monospace text cells containing the text "XXXXX XXX XXX XXXXX" (keep in
mind that this is the easy problem, because it's assuming equal cell
renderers). There's 4 ways to reasonably lay out this text:
19 glyphs (19x1):
  XXXXX XXX XXX XXXXX
18 glyphs (9x2):
  XXXXX XXX
  XXX XXXXX
21 glyphs (7x3):
  XXXXX
  XXX XXX
  XXXXX
20 glyphs (5x4):
  XXXXX
  XXX
  XXX
  XXXXX
The best thing to do usually is using the 9x2 approach, but that's
neither the one using the natural nor the one using the minimum size.

As a side note, this does not include spacing and padding, which might
also influence the decision. Nor does it include height-for-width
considerations. Look at this table (numbers given in glyphs, not pixels,
as for pixel-sizes it gets even more interesting):
  given  best solution
  width  columns  sizing  glyphs per cell
   6      1       6x4           20
   7      1       7x3           21
   8      1       7x3           24
   9      1       9x2           18
  10      1/2     9x2/5x4       20
  11      1/2     9x2/5x4       22
  12      1/2     9x2/5x4       24
  13      1/2     9x2/5x4       26
  14      2       7x3           21
  15      3       5x4           20
  16      3       5x4           21.3
  17      3       5x4           22.7
  18      2       9x2           18
  19      1/2    19x1/8x2       19
  20      1/2/4  19x1/8x2/5x4   20
  21      1-4     any           21
  22      1-4     any           22
  23      1-4     any           23
  24      1-4     any           24
  25      5       5x4           20
  26      5       5x4           20.8
  27      3       9x2           18
  28      3       9x2           18.7
  29      3       9x2           19.3
  30      3/6     9x2/5x4       20

Now of course, nobody wants the number of columns to randomly change in
inexplicable ways while they enlarge or shrink an iconview, so we not
only have to optimize for smallest or other size measurements, but we
also have to optimize for "most pleasing to the eye".

And last but not least, I'd like to once again remind you - if you kept
up until now - that this discussion was for identically-sized cells
only.

12 years agotests: Make testcellarea use an iconview
Benjamin Otte [Sat, 5 May 2012 03:39:58 +0000 (05:39 +0200)]
tests: Make testcellarea use an iconview

12 years agoiconview: Redo size requests
Benjamin Otte [Sat, 5 May 2012 02:33:47 +0000 (04:33 +0200)]
iconview: Redo size requests

Instead of just returning the last allocated numbers, we now compute the
proper sizes from scratch. This is a bit less trivial, but it results in
proper height-for-width handling.

12 years agoiconview: Don't cache iters
Benjamin Otte [Fri, 4 May 2012 16:44:39 +0000 (18:44 +0200)]
iconview: Don't cache iters

This is a huge quest to remove all caching from GtkIconview to simplify
the code. As it turns out, iconview performance is a joke, so the caches
are kinda unnecessary.

If we need caching, we can add it in a useful way later.

12 years agoiconview: Remove needless requirement
Benjamin Otte [Thu, 3 May 2012 22:31:14 +0000 (00:31 +0200)]
iconview: Remove needless requirement

If we use
  &item->cell_area
instead of
  (GdkRectangle *) item
there is no need anymore to keep the cell_area as the first member of
the the item. And we cget compile-time checks for changes to the item
struct.

12 years agogtk_entry_[get|set]_inner_border(): Clarify the deprecation docs.
José Alburquerque [Sun, 6 May 2012 19:05:27 +0000 (15:05 -0400)]
gtk_entry_[get|set]_inner_border(): Clarify the deprecation docs.

12 years ago[socket]: fix gtk-doc warnings.
Paolo Borelli [Sun, 6 May 2012 10:37:59 +0000 (12:37 +0200)]
[socket]: fix gtk-doc warnings.

12 years agogdk: do not send leave event on touchpad button release
Marc-André Lureau [Thu, 3 May 2012 16:15:48 +0000 (18:15 +0200)]
gdk: do not send leave event on touchpad button release

This is along the changes introduced in
bd55519f7e6bb5da2fdf6f5e99bd79213059f81b,
A TOUCHPAD device behaves like a mouse"

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

12 years agoUpdated Hebrew translation.
Yaron Shahrabani [Sat, 5 May 2012 15:22:56 +0000 (18:22 +0300)]
Updated Hebrew translation.

12 years agoUpdated Galician translations
Fran Diéguez [Sat, 5 May 2012 13:18:26 +0000 (15:18 +0200)]
Updated Galician translations

12 years agothemingengine: don't hardcode the slider lines in the theming engine
Cosimo Cecchi [Fri, 10 Jun 2011 17:44:51 +0000 (13:44 -0400)]
themingengine: don't hardcode the slider lines in the theming engine

It's wrong to hardcode the slider lines here; those should be rendered
as an additional background layer using background-image if the theme
specifies so.

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

12 years agoentry-completion: set size request on the toplevel window
Cosimo Cecchi [Tue, 27 Mar 2012 18:23:48 +0000 (14:23 -0400)]
entry-completion: set size request on the toplevel window

Instead of setting it on the child scrolled window. This is needed
because the whole window's allocation must be equal to the one of the
entry (in case the popup-set-width property is TRUE); if we set the size
request on a children of the window, there might be other children with
borders/paddings in between the toplevel and the child we set the size
request too, which will break alignment.

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

12 years agoentry-completion: don't subtract entry borders from popup allocation
Cosimo Cecchi [Tue, 27 Mar 2012 18:22:56 +0000 (14:22 -0400)]
entry-completion: don't subtract entry borders from popup allocation

The completion popup should be aligned with the GtkEntry allocation, not
less than that.

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

12 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 4 May 2012 12:16:45 +0000 (14:16 +0200)]
Updated Spanish translation

12 years agocellrenderertext: Add placeholder-text property
Carlos Garcia Campos [Fri, 4 May 2012 03:25:08 +0000 (23:25 -0400)]
cellrenderertext: Add placeholder-text property

It works similar to placeholder text in a GtkEntry, if the cell renderer
is editable and it's empty, the placeholder text is displayed.
https://bugzilla.gnome.org/show_bug.cgi?id=645514

12 years agodocs: Improve GtkMessageDialog description
David King [Mon, 20 Feb 2012 18:05:12 +0000 (18:05 +0000)]
docs: Improve GtkMessageDialog description

Add mention of default setting of GtkWindow:skip-taskbar-hint.

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

12 years agodocs: Move GtkSelectionData to gtk3-Selections
David King [Mon, 20 Feb 2012 17:05:08 +0000 (17:05 +0000)]
docs: Move GtkSelectionData to gtk3-Selections

Put the (albeit empty) documentation for the GtkSelectionData struct
with the gtk_selection_data_*() methods.

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

12 years agodocs: Correct gtk_tree_row_reference_new() description
David King [Mon, 20 Feb 2012 14:42:11 +0000 (14:42 +0000)]
docs: Correct gtk_tree_row_reference_new() description

Remove the text that mentions listening to tree model signals, and
instead say that any changes are automatically propagated.

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

12 years agoAdd support for disabling middle click paste
Bastien Nocera [Wed, 30 Nov 2011 19:46:55 +0000 (20:46 +0100)]
Add support for disabling middle click paste

Adds a gtk-enable-primary-paste setting that is backed by
and X setting, and make GtkEntry and GtkTextView respect it.

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

12 years agoprinting: Rename GTK_UNIT_PIXEL to GTK_UNIT_NONE
Ryan Lortie [Mon, 20 Feb 2012 13:24:33 +0000 (13:24 +0000)]
printing: Rename GTK_UNIT_PIXEL to GTK_UNIT_NONE

...and document that many functions don't accept "none" as a unit.

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

12 years agogdk: add bindings-friendly alias for GDK_EVENT_2BUTTON_PRESS
Dan Winship [Fri, 2 Mar 2012 15:33:52 +0000 (10:33 -0500)]
gdk: add bindings-friendly alias for GDK_EVENT_2BUTTON_PRESS

GDK_EVENT_2BUTTON_PRESS and GDK_EVENT_3BUTTON_PRESS can't be used from
some bindings because they'd translate to something syntactically
invalid. Add GDK_EVENT_DOUBLE_BUTTON_PRESS and
GDK_EVENT_TRIPLE_BUTTON_PRESS aliases to work around that.

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

12 years agowindow: Remove needless call to ensure_state_flag_backdrop() on map
Rui Matos [Sat, 31 Mar 2012 14:16:24 +0000 (16:16 +0200)]
window: Remove needless call to ensure_state_flag_backdrop() on map

This call was forcing needless work since gtk_window_map() already
does a gdk_window_show() which initially sets GDK_WINDOW_STATE_FOCUSED
that we then handle regularly on the widget's window state event
handler.

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

12 years agobuild: Fix out-of-tree build of widget-factory demo application
Michael Biebl [Mon, 16 Apr 2012 11:40:07 +0000 (13:40 +0200)]
build: Fix out-of-tree build of widget-factory demo application

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

12 years agoUpdated Dutch po-properties translation by Rachid, reviewed by Reinout
Reinout van Schouwen [Thu, 3 May 2012 22:23:36 +0000 (00:23 +0200)]
Updated Dutch po-properties translation by Rachid, reviewed by Reinout
van Schouwen.

12 years agoFix unclosed comments
Matthias Clasen [Thu, 3 May 2012 20:11:14 +0000 (16:11 -0400)]
Fix unclosed comments

12 years agocolorbutton: don't hardcode a 16px margin around the color sample
Cosimo Cecchi [Thu, 3 May 2012 19:00:38 +0000 (15:00 -0400)]
colorbutton: don't hardcode a 16px margin around the color sample

Since themes might want different paddings around the color sample
according to where it's being used, don't hardcode a 16px one here.
The theme can specify a padding to get the same effect.

Reported by Christian Persch <chpe@gnome.org>

12 years agoapplication: Fix build without x11
Christian Persch [Thu, 3 May 2012 16:47:58 +0000 (18:47 +0200)]
application: Fix build without x11

12 years agoapplication: Add unique IDs for GtkApplicationWindow
Christian Persch [Fri, 20 Apr 2012 17:29:11 +0000 (19:29 +0200)]
application: Add unique IDs for GtkApplicationWindow

This will allow to refer to specific GtkApplicationWindows remotely by ID.

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

12 years agofontsel: Add a deprecation note in the constructor docs
Emmanuele Bassi [Thu, 3 May 2012 07:07:13 +0000 (08:07 +0100)]
fontsel: Add a deprecation note in the constructor docs

To match the compiler attribute, otherwise the introspection scanner
will not pick up the deprecation.

12 years agoBug 670499-gtk/fallback-c89.c: Add fallback for nearbyint()
Chun-wei Fan [Thu, 5 Apr 2012 14:55:15 +0000 (22:55 +0800)]
Bug 670499-gtk/fallback-c89.c: Add fallback for nearbyint()

This adds a C89 implementation for nearbyint() as it is a function that
is only made available in C99.

12 years agoBug 670499-gdk/gdkrgba.c: Include fallback-c89.c
Chun-wei Fan [Thu, 5 Apr 2012 15:03:28 +0000 (23:03 +0800)]
Bug 670499-gdk/gdkrgba.c: Include fallback-c89.c

Include (gdk/)fallback-c89.c as isnan() and isinf() is used.

12 years agoBug 670499-Add gdk/fallback-c89.c
Chun-wei Fan [Thu, 5 Apr 2012 15:00:36 +0000 (23:00 +0800)]
Bug 670499-Add gdk/fallback-c89.c

Add a fallback-c89.c for the gdk/ subdirectory as there is code that uses
functions that are introduced by C99.  This currently adds fallback
implementations for MSVC for isnan() and isinf()

Dist this "new" source file as well

12 years agoBug 670499-configure.ac: Check for nearbyint(), isinf() and isnan()
Chun-wei Fan [Thu, 5 Apr 2012 10:15:45 +0000 (18:15 +0800)]
Bug 670499-configure.ac: Check for nearbyint(), isinf() and isnan()

nearbyint(), isinf() and isnan() are C99 functions, so check for them.

Also clean up configure.ac a little bit as the checks for rint() and
round() can be a bit simpler, according to Matthias' suggestions.

12 years agoBug 670449-gtk/gtksettings.c: Fix build on Windows
Chun-wei Fan [Thu, 5 Apr 2012 16:28:45 +0000 (00:28 +0800)]
Bug 670449-gtk/gtksettings.c: Fix build on Windows

On Windows, gtkwin32themeprivate.h is needed as
_gtk_win32_theme_get_default() is called on that platform to avoid C4013
warnings/errors (aka implicit declaration of ... for GCC folks).

12 years agopathbar: fix a copy/paste error from last commit
Cosimo Cecchi [Wed, 2 May 2012 15:49:40 +0000 (11:49 -0400)]
pathbar: fix a copy/paste error from last commit

We need to update the child pointer to the current iterator when going
trough the button list.

12 years agostylecontext: Disallow adding/removing GtkSettings style providers
Benjamin Otte [Wed, 2 May 2012 04:28:57 +0000 (06:28 +0200)]
stylecontext: Disallow adding/removing GtkSettings style providers

Adding "system" providers like the GtkSettings object shouldn't be
allowed at all, so ensure that it indeed is not.

12 years agopathbar: Only invalidate styles in allocate if stuff really changed
Benjamin Otte [Wed, 2 May 2012 03:08:19 +0000 (05:08 +0200)]
pathbar: Only invalidate styles in allocate if stuff really changed

I still don't like queueing restyles in size_allocate(), but I can't
come up with a better mechanims for the way the pathbar works today.

12 years agoUpdated Greek translation
Dimitris Spingos [Wed, 2 May 2012 09:21:52 +0000 (12:21 +0300)]
Updated Greek translation

12 years agodebug: Add GTK_DEBUG=no-css-cache
Benjamin Otte [Tue, 1 May 2012 23:59:15 +0000 (01:59 +0200)]
debug: Add GTK_DEBUG=no-css-cache

See inline comments for what it does. Its main use is figuring out if
something has been caused by GTK's caching of CSS properties or if it's
a different problem.

12 years agobuild: Set G_ENABLE_DEBUG for minimal --enable-debug=minimum
Benjamin Otte [Tue, 1 May 2012 23:46:02 +0000 (01:46 +0200)]
build: Set G_ENABLE_DEBUG for minimal --enable-debug=minimum

With that flag set, we get GDK_DEBUG and GTK_DEBUG support. And those
provide useful features we want when debugging.

12 years agowindow: Validate style context before first allocation
Benjamin Otte [Tue, 1 May 2012 23:43:52 +0000 (01:43 +0200)]
window: Validate style context before first allocation

When we don't do that, we completely botch sizing popups. Not good.

Fixes remaining failing reftests

12 years agoreftests: Remove unneeded event boxes
Benjamin Otte [Tue, 1 May 2012 20:49:26 +0000 (22:49 +0200)]
reftests: Remove unneeded event boxes

The event boxes break when backgrounds are transparent.

Fixes border-image-repeat.ui reftest.

12 years agoreftests: Make reset css include new CSS properties
Benjamin Otte [Tue, 1 May 2012 17:23:29 +0000 (19:23 +0200)]
reftests: Make reset css include new CSS properties

12 years agocssshadow: plug a memory leak
Cosimo Cecchi [Tue, 1 May 2012 19:03:06 +0000 (15:03 -0400)]
cssshadow: plug a memory leak

12 years agoBump version
Matthias Clasen [Tue, 1 May 2012 03:18:49 +0000 (23:18 -0400)]
Bump version

12 years agoBump to 3.5.2
Matthias Clasen [Tue, 1 May 2012 03:02:18 +0000 (23:02 -0400)]
Bump to 3.5.2

12 years agoAdd some more documentation about GDK_SCROLL_SMOOTH
Matthias Clasen [Tue, 1 May 2012 02:28:08 +0000 (22:28 -0400)]
Add some more documentation about GDK_SCROLL_SMOOTH

12 years agocssshadow: Default fallback color is transparent
Benjamin Otte [Tue, 1 May 2012 00:27:23 +0000 (02:27 +0200)]
cssshadow: Default fallback color is transparent

... not the current color. Fixes unresolvable.ui test.

12 years agocssmatcher: Handle case of empty widget path
Benjamin Otte [Mon, 30 Apr 2012 19:28:57 +0000 (21:28 +0200)]
cssmatcher: Handle case of empty widget path

This is tested by the stylecontext test, but doesn't appear in practice.

12 years agocssprovider: Actually match the state for style properties
Benjamin Otte [Mon, 30 Apr 2012 19:19:36 +0000 (21:19 +0200)]
cssprovider: Actually match the state for style properties

Copy/paste error when refactoring.

Caught by stylecontext test.

12 years agoversionmacros: min-require the current stable version
Benjamin Otte [Mon, 30 Apr 2012 18:45:47 +0000 (20:45 +0200)]
versionmacros: min-require the current stable version

.. instead of the previous stable version.

This ensures that if we use GDK_DEPRECATED_IN_3_6, it will actually emit
a warning in GTK 3.5, and not wait with that until GTK 3.7. This is
particularly useful for stuff that gets deprecated right now. This code
should emit warnings right now, so we know what we're doing while
deprecating.

12 years agodocs: Fix copy/paste typo
Benjamin Otte [Mon, 30 Apr 2012 18:45:34 +0000 (20:45 +0200)]
docs: Fix copy/paste typo

12 years agogtk: Get rid of deprecation warnings
Benjamin Otte [Mon, 30 Apr 2012 18:44:25 +0000 (20:44 +0200)]
gtk: Get rid of deprecation warnings

12 years agotests: Ifdef out unused code
Benjamin Otte [Mon, 30 Apr 2012 18:43:51 +0000 (20:43 +0200)]
tests: Ifdef out unused code

The test using those functions was disabled in
b310ba29d0c14cdd566b4af1dd10599735980985

12 years agobuild: Remove now-unused GTK_DISABLE_DEPRECATED undefs
Benjamin Otte [Mon, 30 Apr 2012 17:24:54 +0000 (19:24 +0200)]
build: Remove now-unused GTK_DISABLE_DEPRECATED undefs

12 years agoUpdate reference output for css parser tests
Matthias Clasen [Tue, 1 May 2012 00:45:46 +0000 (20:45 -0400)]
Update reference output for css parser tests

Seems these were not kept up-to-date with the recent
CSS parser changes.

12 years agoGtkApplication: adjust to GApplication changes
Ryan Lortie [Mon, 30 Apr 2012 16:34:47 +0000 (12:34 -0400)]
GtkApplication: adjust to GApplication changes

GApplication now makes the session bus and object path available as a
public API on the application instance.  Use that instead of trying to
guess values for ourselves.

This causes this version of Gtk+ to depend on GLib 2.32.2, so bumping
version dependency accordingly.

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

12 years agoGtkApplication: fixes for NULL session bus
Ryan Lortie [Mon, 30 Apr 2012 17:43:23 +0000 (13:43 -0400)]
GtkApplication: fixes for NULL session bus

We currently have a couple of cases where GtkApplication assumes that
the session bus will be non-NULL causing critical error output or (in
the case of trying to publish menus) an infinite loop.

Three fixes:

 - if the session bus is NULL due to not having registered the
   GtkApplication yet then give a g_critical on the entry point to the
   menu setters instead of going into an infinite loop.  Document this.

 - check for NULL session bus even when calling the menu setters at the
   right time in order to prevent the infinite loop for
   non-programer-error cases (ie: because we had trouble connecting to
   the session bus)

 - check for NULL session bus when publishing the X11 properties on the
   GtkApplicationWindow and skip publishing them if we're not on the bus

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