Commit Graph

29120 Commits

Author SHA1 Message Date
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
Matthias Clasen
cf028a1f7b 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
2011-12-12 09:27:09 -05:00
Federico Mena Quintero
bdd163d4ea [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>
2011-11-29 15:08:25 -06:00
Federico Mena Quintero
67437c8d6c [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>
2011-11-29 15:07:01 -06:00
Federico Mena Quintero
f5a6279471 [path-bar] Add some comments to explain the async recursion on an I/O callback
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-11-29 14:16:29 -06:00
Federico Mena Quintero
0fb5e6fff3 [path-bar] Only reset the children's styles if the children actually changed
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-11-29 14:16:24 -06:00
Federico Mena Quintero
674404f171 Remove unused argument
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-11-29 14:16:19 -06:00
Benjamin Otte
aca43f43be filechooserdefault: Don't unref value twice
Double unref was introduced in eb02dacb37

https://bugzilla.gnome.org/show_bug.cgi?id=646461
https://bugzilla.gnome.org/show_bug.cgi?id=664137
2011-11-29 20:52:07 +01:00
Benjamin Otte
512ac214c6 a11y: Fix crash in treeview
This is a band-aid fix. The master branch has a complete rework of the
treeview a11y code. Let's hope this will cause most crashes to magically
disappear. This code has been indexing by random memory on the stack for
a long while and things didn't crash, so let's hope for the best.

https://bugzilla.gnome.org/show_bug.cgi?id=663322
https://bugzilla.gnome.org/show_bug.cgi?id=664137
2011-11-26 20:46:26 +01:00
Rui Matos
32c08de08c Bug 653676 - Expand/Collapse doesn't respond after one click
Ignore leave-notify-event when mode is GDK_CROSSING_GTK_[UN]GRAB.
Just [un]grabbing shouldn't cause us to [un]prelight the current arrow
and node.
2011-11-20 21:04:29 +01:00
Kristian Rietveld
d2d45b652f Don't call scroll to cell if the tree view is empty
Account for the case when gtk_drag_finish() didn't actually add a row
(can happen when dragging from an empty tree view to itself ...).
2011-11-20 20:07:38 +01:00
Kristian Rietveld
895eb18412 Bug 660554 - gtk_tree_view_drag_begin: assertion `path != NULL' failed
Turned assertion into silent return.

This assertion is only hit when dragging from an empty tree view.  In
this case, gtk_tree_view_begin_drag() is triggered from gtkdnd.c and not
from gtk_tree_view_maybe_begin_dragging_row().  We actually want to
cancel the drag at this point, but that is not possible with the GTK+
API as far as I can see.

The alternative is to not allowing the drag to start.  This could be
done by simply unsetting the tree view as drag source when it is empty
and setting it as drag source again when rows are added.  I didn't
choose to go with this for now, since this will likely break third party
code.
2011-11-20 20:07:38 +01:00
Kristian Rietveld
39f0287c58 quartz: fix coding style in quartz-version of gtk_drag_begin_internal 2011-11-20 20:07:38 +01:00
Kristian Rietveld
0e941cca92 quartz: do not call gdk_drag_begin() twice
This makes drag and drop work again on Quartz.
2011-11-20 20:07:38 +01:00
John Ralls
22db419f52 [Bug 664238] GTK apps crash when dragging something
Corrects a bad condition in a test in 9d900681
2011-11-20 10:40:08 -08:00
Jorge González
e82aed1e95 Updated Spanish translation 2011-11-20 10:40:55 +01:00
Michel Dänzer
b448ae7963 Fix gdk_cairo_region_create_from_surface on big endian
gdk_cairo_region_create_from_surface doesn't work correctly on PPC.
This is most prominently seen with the GTK window resize grip, the
shape of which is mirrored every eight pixels horizontally.

At the same time, use an A1 surface for the resize grip shape to
eliminates an A8->A1 surface conversion.
2011-11-19 12:25:39 -05:00
Michael Natterer
182cf3daa6 Bug 663856 - Make option-foo accelerators use the right symbol
If the keyboard group shifting modifier is *also* a normal
accelerator modifier, we need to special case it when calling
gdk_keymap_translate_keyboard_state(), so we get the right
key symbol for accelerators (for example we want Option-O,
not Option-Ø displayed in menu items). This patch should only
affect quartz where the Alt key both shifts the group and can
be used as accel modifier, and not X11 or Win32 where AltGr
is not used for accelerators.

- fix quartz' gdk_keymap_translate_keyboard_state() to return
  the right consumed_modifiers
- add _gtk_translate_keyboard_accel_state() which does the
  special casing
- use it everywhere instead of gdk_keymap_translate_keyboard_state()
2011-11-18 12:47:14 +01:00
Michael Natterer
87ebfb19fd notebook: don't leak the action widgets
The notebook owns them, so it must destroy them in destroy().
(cherry picked from commit 4c35d987df)
2011-11-17 01:03:53 +01:00