Commit Graph

29138 Commits

Author SHA1 Message Date
Claudio Saavedra
0694e8bcd3 GtkNotebook: fix one child-notify emission
Forgot to increase the counter in the for loop, doing it now.

https://bugzilla.gnome.org/show_bug.cgi?id=669116
2012-03-11 21:15:05 -04:00
Claudio Saavedra
afa9f13088 GtkNotebook: emit child-notify::position on drag 'n drop reorder
https://bugzilla.gnome.org/show_bug.cgi?id=669116
2012-03-11 21:14:34 -04:00
Claudio Saavedra
4743dcd619 GtkNotebook: emit child-notify::position on page add/removal
For each page added/removed, notify all the other children changing
position.

https://bugzilla.gnome.org/show_bug.cgi?id=669116
2012-03-11 21:14:22 -04:00
Cosimo Cecchi
cfec22fee3 about-dialog: set proper spacing between columnns in credits section
Spacing ended up being really tight; add another 6px.

https://bugzilla.gnome.org/show_bug.cgi?id=668114
2012-03-11 21:13:00 -04:00
Cosimo Cecchi
5784f764f8 about-dialog: don't set a margin around the license area
Make it consistent with the credits page.

https://bugzilla.gnome.org/show_bug.cgi?id=670077
2012-03-11 21:12:45 -04:00
Cosimo Cecchi
d9b3086df6 about-dialog: add a stroke around the credits area
Makes it consistent with e.g. the license page.

https://bugzilla.gnome.org/show_bug.cgi?id=670078
2012-03-11 21:12:31 -04:00
Claudio Saavedra
d7daa3cb0d GtkNotebook: emit child-notify::position a few more times
When moving a page around, all children changing their position
need to be notified.

There are still other places where proper notification is missing
(drag 'n drop, etc.)

https://bugzilla.gnome.org/show_bug.cgi?id=669116
2012-03-11 21:11:38 -04:00
Diego Escalante Urrelo
a2135ef032 gtkactiongroup: clarify set_translation_domain docs
NULL is an actual useful value for
gtk_action_group_set_translation_domain, but this information is buried
in g_dgettext() documentation.

Be extra redundant, to make it obvious that NULL is ok.

https://bugzilla.gnome.org/show_bug.cgi?id=669636
2012-03-11 21:09:38 -04:00
Matthias Clasen
0be061d8c8 Use larger screen for tests
We used to run Xvfb with 800x600, which turns out to be too small
for some of our reftests. Bump it to 1024x768.
2012-03-11 21:08:50 -04:00
Will Newton
b076de9409 iconcache: Always check return value of find_image_offset.
find_image_offset returns 0 if it failed to find a matching image.
Check this return value in _gtk_icon_cache_get_icon to avoid
making bad memory accesses later.

Signed-off-by: Will Newton <will.newton@imgtec.com>

https://bugzilla.gnome.org/show_bug.cgi?id=667745
2012-03-11 21:03:58 -04:00
Siegfried-Angel Gevatter Pujals
7b3dba7268 GtkRecentManager: guess mime-type from filename when file doesn't exist 2012-03-11 21:03:53 -04:00
Alexander Larsson
4dae33cdb0 Fix visibility notification event reporting
We were checking the event mask for GDK_VISIBILITY_NOTIFY,
not GDK_VISIBILITY_NOTIFY_MASK, which was clearly a typo.
2012-03-11 21:00:10 -04:00
Benjamin Berg
cdf116605f Strip "Custom." prefix when getting default options from cups. 2012-03-11 20:59:06 -04:00
Matthias Clasen
c7ba64aaf0 Add a few missing Since tags 2012-03-11 20:57:59 -04:00
Rui Matos
1f91adbcf7 x11: Fix the _NET_SUPPORTING_WM_CHECK window fetch to be spec compliant
"The child window MUST also have the _NET_SUPPORTING_WM_CHECK property set to
the ID of the child window. […] If the _NET_SUPPORTING_WM_CHECK window on the
client window is missing or not properly set, clients SHOULD assume that no
conforming Window Manager is present."

This commit implements that, which allows us to not have to do a
XGetWindowProperty() every N seconds when running under a compliant WM.

This is also a more correct fix for the bug handled in commit
daf29bffed.

https://bugzilla.gnome.org/show_bug.cgi?id=666921
2012-03-11 20:54:34 -04:00
Matthias Clasen
ab9d570918 GtkRange: fix resize-grip overlap handling
We only want to shrink the scrollbar allocation by the actual
overlap, not always by the full size of the resize grip.
2012-03-11 20:53:14 -04:00
Matthias Clasen
c1ff1c398c GtkStatusbar: Fix resize-grip overlap calculation
The allocation is relative to the window, so the way the statusbar
was doing the overlap calculation was wrong.
2012-03-11 20:53:00 -04:00
Mikael Magnusson
e9944eb3ff Iconification using _NET_WM_STATE_HIDDEN hint if supported by WM
If the Window Manager supports the _NET_WM_STATE_HIDDEN, we use it to use
the _NET_WM_STATE protocol when de-iconifying windows (iconification is
unchanged, via XIconifyWindow). Additionally, we no longer interpret all
UnmapNotify events for our window as the result of iconification.

(Based on patch by Tomas Frydrych <tf@linux.intel.com>)
2012-03-02 20:50:05 +01:00
John Ralls
51f6bb488e Bug 655065 Build failure on OS X 10.7 Lion
Remove LDDADS and setting each object file's LDDAD to it; just set a global LDDAD.
2012-03-01 16:22:36 -08:00
Krishnababu Krothapalli
58191d5ed0 Updated Telugu Translations 2012-03-01 14:54:23 +05:30
Michael Natterer
55f9e5cbaf quartz: make function keys work (again?)
The F keys have no unicode mapping, and UCKeyTranslate() returns
a bogus 0x10 as mapping to unicode. Instead of checking for this
random and undocumented return value, simply assign all function
keys explicitly. This patch also splits the ill-named "known_keys"
array into "modifier_keys" and "function_keys" which is much
more obvious.
(cherry picked from commit 0b24f16241)
2012-02-23 13:42:50 +01:00
Ihar Hrachyshka
413b70df4a Updated Belarusian translation. 2012-02-20 16:51:51 +03:00
Bastien Nocera
ede5591df0 x11: Fix first call to _gdk_x11_keymap_key_is_modifier()
_gdk_x11_keymap_key_is_modifier() never tries to set min/max_keycode
if they haven't been set before, meaning that until another function
sets those, all the keys will be seen as non-modifiers.

This causes GdkKeyEvents to be wrongly tagged with "->is_modifier = 0"
when in actual fact the key is a modifier. This fixes keyboard
shortcuts captured with GtkCellRendererAccel in "raw" mode thinking
a modifier without any actual keys is a valid shortcut.

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

Conflicts:

	gdk/x11/gdkkeys-x11.c
2012-02-19 17:41:11 +01:00
Milan Crha
516bb1dbc1 Bug 455900 - Invalid write on gtkfilechooserdefault finalise 2012-02-15 09:17:20 +01:00
Swecha Localization Team
3736a118ec Updated Telugu Translation 2012-02-06 17:32:30 +05:30
Marek Kasik
a8e0895449 printing: Fix a typo
Fix a typo which crashes on my printer.
2012-01-26 10:54:22 +01:00
Michael Natterer
e1c107a094 Bug 667691 - implement gdk_window_restack() for Quartz
Apply patch from Paul Davis which implements this missing function.
(cherry picked from commit 5f48cfe491)
2012-01-26 10:23:47 +01:00
Michael Natterer
d915d17ff6 quartz: add virtual modifiers already in GDK, just as X11 does it
Key event states  will now always contain GDK_META_MASK in addition
to GDK_MOD2_MASK.
(cherry picked from commit 0488c28488)
2012-01-19 16:24:47 +01:00
Stefan Sauer
fe23dc2c10 gtkscale: fix bogus compare func
The GtkScaleMark values are gdouble, a simple a-b compare func would fail for
values with the same integer value. This breaks the sorting and causes random
marker label placement.
2012-01-09 18:31:53 +01:00
Matthias Clasen
c40ea99866 Use the right icon-name for missing images
Patch by Erik van Pienbroek, bug 629878.
2012-01-05 14:08:48 -05:00
Marek Kasik
4b423ca5ea GtkPrintUnixDialog: Hide unused tabs
Don't show tabs which are empty. This is related to
the recent GtkTable -> GtkGrid conversion. (#663479)
Also backport a fix of a typo from master.
2012-01-05 13:19:50 +01:00
Matthias Clasen
44e30c6db9 Fix problems with DND on some X servers
When the X server does not support the shape extension (as some
vnc implementations seem to), our DND code was always seeing
an empty input shape, so drops always missed their target.

http://bugzilla.gnome.org/show_bug.cgi?id=620240
2012-01-03 11:16:46 -05:00
Piotr Drąg
153b4f222a Updated POTFILES.skip 2011-12-29 17:49:42 +01:00
Benjamin Otte
97e3e4c3ba reftests: Add test for empty grid with spacing
This used to crash.

https://bugzilla.gnome.org/show_bug.cgi?id=660139
2011-12-29 10:02:54 +01:00
Matthias Clasen
97c1df4bb0 Fix natural/min widht calculations for empty grids
https://bugzilla.gnome.org/show_bug.cgi?id=660139
2011-12-29 10:01:59 +01:00
Matthias Clasen
49c9ec586e Bump version 2011-12-19 10:41:22 -05:00
Matthias Clasen
a53cfaaf7b Make the pickers test work
Use the unix volume monitor, since gvfs is injecting all my extra
partitions into the dump of the file chooser.
3.2.3
2011-12-19 10:10:34 -05:00
Matthias Clasen
db6282d20f Updates 2011-12-19 09:15:17 -05:00
Carlos Garnacho
c6cc1a848f gdk,xi2: Make more resilient about not yet known devices
Dealing with disabled devices may turn into hierarchy/device
changed events on device IDs with no backing GdkDevice yet,
so protect against that. The device attachment will be handled
correctly when the device is enabled later.
2011-12-19 09:01:10 -05:00
Pavol Šimo
98c44a0ea8 Updated Slovak translation 2011-12-14 14:23:25 +01:00
Jan Rękorajski
5c8d9de2fc print dialog: Fix authentication logic
Reset state of CUPS requests correctly during authentization and
check CUPS requests for errors.
Don't initialize variables holding password and username with empty
string (#664640).
2011-12-14 14:11:55 +01:00
Federico Mena Quintero
2e931bd1fe 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>
2011-12-13 11:05:54 -06:00
Matthias Clasen
e3005ea454 Fix move-resize emulation with XI2
https://bugzilla.gnome.org/show_bug.cgi?id=650943
2011-12-12 09:33:25 -05:00
Matthias Clasen
0847389581 Revert 3fd7dbc940
Calling gdk_keymap_add_virtual_modifiers causes _all_ virtual
modifiers to be added, which causes problem when they are co-located
on the same real modifier (as Super and Hyper often are). Effectively,
this made it impossible to enter key combinations involving Super,
since they all turn into Super+Hyper.
2011-12-12 09:33:09 -05:00
Matthias Clasen
efe53e5afc Test some virtual modifiers
This adds some accelerators involving Super and Hyper to testmerge.
This helps in testing our accel matching for those.
2011-12-12 09:32:53 -05:00
Stef Walter
b38f5ffa52 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
2011-12-12 09:29:46 -05:00
Matthias Clasen
6c988c2850 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.
2011-12-12 09:29:37 -05:00
Paolo Borelli
18a366a206 Avoid shadowing a variable
Move bg_color variable to an inner scope.
2011-12-12 09:29:11 -05:00
Christian Persch
901449adf7 prop-editor: Implement property editing for GdkRGBA properties
Bug #664467.
2011-12-12 09:28:14 -05:00
Christian Persch
47a321f5f2 color-button: Notify "color" and "alpha" properties when changing the rgba
Bug #664469.
2011-12-12 09:27:28 -05:00