]> Pileus Git - ~andy/gtk/log
~andy/gtk
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

12 years agoinfobar: deprecate broken GtkInfoBar style properties
Cosimo Cecchi [Mon, 30 Apr 2012 21:09:18 +0000 (17:09 -0400)]
infobar: deprecate broken GtkInfoBar style properties

The way we use these style properties to set regular properties on
containers accessible from the public API is really just broken, and
could lead to undefined values for the spacing and border-width
container properties (since they could be set from public API and then
changed from under in a style_update handler from GTK).

Take this as an occasion to deprecate these style properties, which do
not make a lot of sense anyway, now that GtkInfoBar supports regular CSS
padding and border.

12 years agoGtkPlug: fix handling of key events for different layouts
Owen W. Taylor [Mon, 30 Apr 2012 19:33:49 +0000 (15:33 -0400)]
GtkPlug: fix handling of key events for different layouts

GtkPlug directly handles X KeyPress/Release events, instead of using
translation in GDK (which expects XI2 events for XI2). When this
was done, the handling of the group was stubbed out and never replaced.

Export gdk_keymap_x11_group_for_state() and gdk_keymap_x11_is_modifier()
so we can fill out the fields correctly.

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

12 years agoFix info-bar reftest
Paolo Borelli [Mon, 30 Apr 2012 19:41:03 +0000 (21:41 +0200)]
Fix info-bar reftest

InfoBar must take into account the border and padding when requesting
its allocation, since it is then drawing them. Besides, the border and
background should always be drawn, even when the message type is OTHER.

12 years agoFix infobar reftest for label background changes
Paolo Borelli [Fri, 24 Feb 2012 13:32:43 +0000 (14:32 +0100)]
Fix infobar reftest for label background changes

Fix the reftest after previous commit

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

12 years agoreftests: fix background-size reftest
Cosimo Cecchi [Mon, 30 Apr 2012 16:54:45 +0000 (12:54 -0400)]
reftests: fix background-size reftest

We have to be careful and not set the background on the labels
themselves.

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

12 years agoPaint label background
Paolo Borelli [Fri, 24 Feb 2012 13:30:49 +0000 (14:30 +0100)]
Paint label background

Make GtkLabel respect background css properties.

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

12 years agothemingbackground: fix copy/paste typo
Cosimo Cecchi [Mon, 30 Apr 2012 16:10:45 +0000 (12:10 -0400)]
themingbackground: fix copy/paste typo

We need to fetch the area value for the origin, not for the clip.

12 years agoDisable configuration-dependent keymap tests for now
Matthias Clasen [Mon, 30 Apr 2012 11:32:33 +0000 (07:32 -0400)]
Disable configuration-dependent keymap tests for now

These need to be made independent of the xkb configuration somehow.
As things are now, they will either fail when run on a naked X
server in make check, or fail when run in my session.

12 years agoFix build with --enable-debug
Matthias Clasen [Mon, 30 Apr 2012 11:07:33 +0000 (07:07 -0400)]
Fix build with --enable-debug

12 years agoUpdates for 3.5.1
Matthias Clasen [Mon, 30 Apr 2012 11:02:01 +0000 (07:02 -0400)]
Updates for 3.5.1

12 years agoMention XDG Base Dir migration in README for 3.6
William Jon McCann [Sat, 28 Apr 2012 01:44:26 +0000 (21:44 -0400)]
Mention XDG Base Dir migration in README for 3.6

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

12 years agoMigrate to XDG config dir for bookmarks
William Jon McCann [Fri, 27 Apr 2012 16:57:50 +0000 (12:57 -0400)]
Migrate to XDG config dir for bookmarks

Will read from old location if new location isn't found but will
write it out to the new location.

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

12 years agoPrefer xdg data directory to legacy .icons directory
William Jon McCann [Fri, 27 Apr 2012 16:39:17 +0000 (12:39 -0400)]
Prefer xdg data directory to legacy .icons directory

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

12 years agoTry to load css themes from the XDG config directory first
William Jon McCann [Fri, 27 Apr 2012 16:32:18 +0000 (12:32 -0400)]
Try to load css themes from the XDG config directory first

Will fall back to previous locations.

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

12 years agoMigrate to XDG config dir for custom papers
William Jon McCann [Fri, 27 Apr 2012 16:23:38 +0000 (12:23 -0400)]
Migrate to XDG config dir for custom papers

Will read from old location if new location isn't found but will
only write to the new location.

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

12 years agoDon't load binary modules from the home directory by default
William Jon McCann [Fri, 27 Apr 2012 14:52:13 +0000 (10:52 -0400)]
Don't load binary modules from the home directory by default

We should rely on the module path environment variables being
set correctly for the architecture rather than load from .gtk-3.0

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

12 years agoFix the colord support in GtkPrinterCups when the PPD is loaded async
Richard Hughes [Thu, 26 Apr 2012 16:13:49 +0000 (17:13 +0100)]
Fix the colord support in GtkPrinterCups when the PPD is loaded async

If the PPD is not available when the printer is loaded then the PPD options are
not available and we can't get the correct qualifier to use with colord.

When the PPD becomes available, refresh the profile title to reflect reality.

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

12 years agoGtkGrid: Add a note about overlapping children
Matthias Clasen [Sat, 28 Apr 2012 06:19:45 +0000 (02:19 -0400)]
GtkGrid: Add a note about overlapping children

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

12 years agoRevert "WIP: make GtkNotebook window-draggable"
Matthias Clasen [Sat, 28 Apr 2012 06:06:37 +0000 (02:06 -0400)]
Revert "WIP: make GtkNotebook window-draggable"

This reverts commit b3a66c59ade144c094d4dbc568e33a5ef85c1a7d.

12 years agotreemodelsort: fix iter_previous so it can go back to the first item
Carlos Garnacho [Sun, 22 Apr 2012 20:32:46 +0000 (22:32 +0200)]
treemodelsort: fix iter_previous so it can go back to the first item

It was getting the previous element, then checking whether it was the
first one, that has to be inverted so it doesn't stop on the second
item.

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

12 years agoWIP: make GtkNotebook window-draggable
Diego Escalante Urrelo [Wed, 28 Mar 2012 08:38:10 +0000 (03:38 -0500)]
WIP: make GtkNotebook window-draggable

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

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

12 years agoAdd a 'fine adjustment' mode to ranges
Matthias Clasen [Thu, 26 Apr 2012 21:51:13 +0000 (17:51 -0400)]
Add a 'fine adjustment' mode to ranges

Shift-click in the slider now starts a drag in 'fine adjustment'
mode, where we move the slider 10-times slower than the mouse.

This can be very helpful when scrolling through a very long document
or webpage, and moving the scrollbar even a single pixel already
jumps too far in the content.

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

12 years agoChange button bindings for range widgets around
Matthias Clasen [Thu, 26 Apr 2012 20:32:14 +0000 (16:32 -0400)]
Change button bindings for range widgets around

It seems to be general consensus that button 1 should do the jumping,
so we now jump to the clicked position on primary button clicks and
page on secondary button clicks. Touch behaves like primary.

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

12 years agostylecontext: Add GTK_STYLE_CLASS_DIM_LABEL
Debarshi Ray [Fri, 20 Apr 2012 13:35:44 +0000 (15:35 +0200)]
stylecontext: Add GTK_STYLE_CLASS_DIM_LABEL

Fixes: https://bugzilla.gnome.org/674468
12 years agogtk-demo: fix the tool palette demo
Matthias Clasen [Fri, 27 Apr 2012 12:30:05 +0000 (08:30 -0400)]
gtk-demo: fix the tool palette demo

The palette was confined to its minimal size, when in horizontal mode.

12 years agotoolpalette: Configure adjustment properly
Benjamin Otte [Fri, 27 Apr 2012 01:33:57 +0000 (03:33 +0200)]
toolpalette: Configure adjustment properly

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

12 years agotoolpalette: Rename variable
Benjamin Otte [Fri, 27 Apr 2012 01:28:22 +0000 (03:28 +0200)]
toolpalette: Rename variable

The variable that holds the total size for all widget allocations
shouldn't be called page_start.

12 years agoicontheme: search first in all themes if the requested icon is symbolic
Cosimo Cecchi [Wed, 25 Apr 2012 01:47:33 +0000 (21:47 -0400)]
icontheme: search first in all themes if the requested icon is symbolic

Symbolic icons use a "-symbolic" suffix to distinguish themselves from
highcolor variants. Note that the dash character here has a different
meaning than the specificity level defined in the icon-naming-spec [1],
as it identifies a property of the icon itself.

Since they might be provided by a parent theme (e.g. the HighContrast theme
relies on the gnome icon theme for them), when we are looking up one we
should first escape the generic icon inheritance mechanism defined in the
icon-naming-spec [1], and privilege a symbolic icon, if it exists in a
parent theme, before applying the inheritance evaluation.

This fixes symbolic icons not working properly when used in the
HighContrast theme with the GTK_ICON_LOOKUP_GENERIC_FALLBACK flag set.

[1]
http://standards.freedesktop.org/icon-naming-spec/latest/ar01s03.html

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

12 years agothemingengine: simplify render_extension() default implementation
Cosimo Cecchi [Wed, 25 Apr 2012 00:22:24 +0000 (20:22 -0400)]
themingengine: simplify render_extension() default implementation

Avoid doing useless translations/rotations, since themes will most
likely set different CSS gradients using left/right/top/bottom style
classes, or use a plain color.

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

12 years agothemingengine: render a frame in gtk_render_handle()
Cosimo Cecchi [Wed, 25 Apr 2012 01:47:45 +0000 (21:47 -0400)]
themingengine: render a frame in gtk_render_handle()

We already render a background there after all.

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

12 years agospinbutton: port to GtkIconHelper
Cosimo Cecchi [Wed, 25 Apr 2012 01:17:25 +0000 (21:17 -0400)]
spinbutton: port to GtkIconHelper

Instead of doing our own lookup for symbolic icons and rendering the
pixbuf, use GtkIconHelper as other widgets do, which saves a bunch of
code.

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

12 years agoRegenerate the gdk/gdkkeysyms.h and gdk/gdkkeysyms-compat.h files
Mark Vender [Thu, 12 Apr 2012 11:35:20 +0000 (11:35 +0000)]
Regenerate the gdk/gdkkeysyms.h and gdk/gdkkeysyms-compat.h files

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

12 years agoFix the gdk/gdkkeysyms-update.pl to reflect new upstream location
Mark Vender [Thu, 12 Apr 2012 11:33:26 +0000 (11:33 +0000)]
Fix the gdk/gdkkeysyms-update.pl to reflect new upstream location

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

12 years agowayland: Calculate window position offset to give emulated root coordinates
Rob Bradford [Mon, 23 Apr 2012 16:26:49 +0000 (17:26 +0100)]
wayland: Calculate window position offset to give emulated root coordinates

This allows combo box popup windows to appear in the correct place. This is a
workaround emulating root coordinates by calculating the offset for a chain
of windows that that are relative to each other.

12 years agowayland: Only update position if the with_move flag is set
Rob Bradford [Fri, 20 Apr 2012 16:57:33 +0000 (17:57 +0100)]
wayland: Only update position if the with_move flag is set

This was causing the combobox popup to be moved to (0,0) when just the
size was asserted.

12 years agowayland: Improve error message handling in cursor buffer code
Rob Bradford [Fri, 20 Apr 2012 12:53:54 +0000 (13:53 +0100)]
wayland: Improve error message handling in cursor buffer code

12 years agoMake page up/down work again in scrolled menus
Matthias Clasen [Wed, 25 Apr 2012 03:34:12 +0000 (23:34 -0400)]
Make page up/down work again in scrolled menus

This was broken since before GTK+ 3.0, when we replaced
a use of requisition by allocation. Fix this by using the
requisition height, that is already cached by the menu code.

The math is not quite right here; if you page all the way
down a long menu, you end up on the second-to-last menuitem.
But at least, page up/down let you move up and down the menu
again.
https://bugzilla.gnome.org/show_bug.cgi?id=668931

12 years agoFix build with XInput < 2.2
Sam Thursfield [Tue, 24 Apr 2012 11:49:51 +0000 (12:49 +0100)]
Fix build with XInput < 2.2

Fixes regression introduced in fa8e6f7857e9b4afba227c3108111f359dc826d5

12 years agodocs: add gtk_builder_add_from_resource() to gtk-doc
Cosimo Cecchi [Mon, 23 Apr 2012 21:41:54 +0000 (17:41 -0400)]
docs: add gtk_builder_add_from_resource() to gtk-doc

12 years agoRemove some more CUPS 1.2 ifdefs.
John Ralls [Mon, 23 Apr 2012 19:37:48 +0000 (12:37 -0700)]
Remove some more CUPS 1.2 ifdefs.

12 years agoBug 670373: modules/printing/cups/gtkprintbackendcups.c won't build with CUPS 1.6
John Ralls [Sun, 19 Feb 2012 23:11:24 +0000 (15:11 -0800)]
Bug 670373: modules/printing/cups/gtkprintbackendcups.c won't build with CUPS 1.6

Fix up accesses of ipp structures in gtkcupsutils.c

12 years agoBug 670373: modules/printing/cups/gtkprintbackendcups.c won't build with CUPS 1.6
John Ralls [Sun, 19 Feb 2012 21:48:19 +0000 (13:48 -0800)]
Bug 670373: modules/printing/cups/gtkprintbackendcups.c won't build with CUPS 1.6

Having refactored cups_request_printer_list_cb so that the cups
version-dependent block size is small enough to be handled in a single ifdef,
make the ifdef HAVE_CUPS_API_1_6 block.

12 years agoMove some variable declarations into the scopes in which they're used.
John Ralls [Sun, 19 Feb 2012 21:45:17 +0000 (13:45 -0800)]
Move some variable declarations into the scopes in which they're used.

12 years agoExtract Function cups_create_printer
John Ralls [Sun, 19 Feb 2012 21:29:11 +0000 (13:29 -0800)]
Extract Function cups_create_printer

12 years agoExtract function cups_printer_handle_attribute
John Ralls [Sun, 19 Feb 2012 21:28:42 +0000 (13:28 -0800)]
Extract function cups_printer_handle_attribute

12 years agoExtract printer setup variables into a struct
John Ralls [Sun, 19 Feb 2012 21:19:11 +0000 (13:19 -0800)]
Extract printer setup variables into a struct

So that it can be passed as a single parameter to functions as we extract-function to make cups_request_printer_list_cb more manageable.

Note that not all of the affected variables are changed in this changeset. Those are in extracted functions and will be addressed in the next two changes.

12 years agoCreate enum PrinterStateLevel
John Ralls [Sun, 19 Feb 2012 21:15:40 +0000 (13:15 -0800)]
Create enum PrinterStateLevel

Fixes "magic number" in printer_state_reason_level.

12 years agoExtract reasons and reasons_desc arrays to file level
John Ralls [Sun, 19 Feb 2012 21:14:36 +0000 (13:14 -0800)]
Extract reasons and reasons_desc arrays to file level

So that they can be used from more than one function. Rename them to avoid naming conflicts.

12 years agoBug 670373: modules/printing/cups/gtkprintbackendcups.c won't build with CUPS 1.6
John Ralls [Sat, 18 Feb 2012 22:16:27 +0000 (14:16 -0800)]
Bug 670373: modules/printing/cups/gtkprintbackendcups.c won't build with CUPS 1.6

The first, simple changes. Turns off the deprecation warnings and substitutes macros and short ifdef blocks where feasible.

12 years agoStyleProviderPrivate: mark internal variable as static
Giovanni Campagna [Sun, 22 Apr 2012 17:25:16 +0000 (19:25 +0200)]
StyleProviderPrivate: mark internal variable as static

Otherwise, it could conflict with other symbols with the same
name exported by a different shared library, with undefined
effects.

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

12 years agoUpdated Russian translation
Yuri Kozlov [Mon, 23 Apr 2012 08:14:57 +0000 (12:14 +0400)]
Updated Russian translation

12 years agoxi2: ignore extraneous events for smooth scroll
Cosimo Cecchi [Fri, 20 Apr 2012 21:34:08 +0000 (17:34 -0400)]
xi2: ignore extraneous events for smooth scroll

Since the event will be ignored anyway after it's translated (slave
devices are disabled), don't let it run in the smooth scroll code path,
as it will burn our caches for the actual event we're interested in.

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

12 years agoxi2: fix thinko in variable type
Cosimo Cecchi [Fri, 20 Apr 2012 21:24:45 +0000 (17:24 -0400)]
xi2: fix thinko in variable type

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

12 years agoXI2: More logging for smooth scrolling
Matthias Clasen [Sun, 22 Apr 2012 16:50:29 +0000 (12:50 -0400)]
XI2: More logging for smooth scrolling

In addition to the delta, log device information.
This was triggered by
https://bugzilla.gnome.org/show_bug.cgi?id=673644

12 years agoBeginning of keyhash tests
Matthias Clasen [Sun, 22 Apr 2012 05:32:20 +0000 (01:32 -0400)]
Beginning of keyhash tests

Not very interesting yet

12 years agoquartz: fix coordinates for synthesized event
Kristian Rietveld [Sun, 22 Apr 2012 15:11:38 +0000 (17:11 +0200)]
quartz: fix coordinates for synthesized event

Of course, we must pass coordinates in the NSWindow coordinate system
when creating an NSEvent. This fixes drag icon positioning and makes
the icon slide back to the correct position when the drag is
canceled.

12 years agoUpdated Hebrew translation.
Yaron Shahrabani [Sun, 22 Apr 2012 08:43:37 +0000 (11:43 +0300)]
Updated Hebrew translation.

12 years agoUpdated Bulgarian translation
Alexander Shopov [Sun, 22 Apr 2012 06:13:05 +0000 (09:13 +0300)]
Updated Bulgarian translation

12 years agoUpdated Serbian translation
Мирослав Николић [Sat, 21 Apr 2012 07:30:37 +0000 (09:30 +0200)]
Updated Serbian translation

12 years ago./configure: fix error output for no -libXext
Ryan Lortie [Mon, 16 Apr 2012 13:34:30 +0000 (09:34 -0400)]
./configure: fix error output for no -libXext

Due to the way the tests are structured, a missing libXext will give a
warning about a missing libX11 (even if libX11 is installed).  This is
confusing to people who are trying to build Gtk.

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