Commit Graph

35906 Commits

Author SHA1 Message Date
Sebastien Bacher
357357f8a1 Clean incorrect "_" use in the french translation
https://bugzilla.gnome.org/show_bug.cgi?id=712213
2013-11-13 16:33:29 +01:00
Matthias Clasen
2118643429 GtkApplicationWindow: avoid mis-allocation
In the fallback case, we were adding the border width of the
window twice, causing the content to be mis-positioned and
cut off in some cases.

https://bugzilla.gnome.org/show_bug.cgi?id=710909
2013-11-12 21:03:43 -05:00
Lars Uebernickel
9e58d31423 GtkMenuTracker: set action namespace correctly
gtk_menu_tracker_add_items() fetched the action-namespace from the menu
item, but didn't pass it into gtk_menu_tracker_section_new() when its
internal namespace was still NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=712164
2013-11-12 15:43:09 -05:00
Matthias Clasen
27318ef89e treeview: fix dragging of columns in mutter
Don't recurse the mainloop in _gtk_tree_view_column_start_drag().
It doesn't serve any discernible purpose, and recursing the
mainloop from the flush-events phas of the frame clock breaks
frame synchronization with mutter.

https://bugzilla.gnome.org/show_bug.cgi?id=705176
2013-11-11 23:18:59 -05:00
Olivier Brunel
04d896296d gtkpixelcache: Fix possibly ignoring queued redraw
If a queue_redraw() (invalidating a region, or the whole widget) was
called from the draw() call, it could get ignored if surface_dirty
existed, as it would then be updated, but destroyed right at the end of
the _gtk_pixel_cache_repaint(), leading the next call to
_gtk_pixel_cache_draw() have its call to repaint() be a no-op
(since there's no surface_dirty) and then simply draw from (non
updated) surface.

Signed-off-by: Olivier Brunel <jjk@jjacky.com>

https://bugzilla.gnome.org/show_bug.cgi?id=711545
2013-11-11 23:18:47 -05:00
Matthias Clasen
5451bee320 Bump version 2013-11-11 10:00:51 -05:00
Matthias Clasen
076788f440 Revert "Bump version"
This reverts commit 77d6c28521.
2013-11-11 10:00:31 -05:00
Matthias Clasen
77d6c28521 Bump version 2013-11-11 09:59:57 -05:00
Matthias Clasen
08aafd2bea 3.10.3 3.10.3 2013-11-11 09:20:50 -05:00
Jonh Wendell
713e798419 toolbar: implement minimum and natural sizes in _get_preferred family
currently it's using the same sizes for natural and minimum, but it
happens that, when it's allowed to use the arrow, the minimum size
can be smaller than natural.

https://bugzilla.gnome.org/show_bug.cgi?id=693227
2013-11-11 09:07:51 -05:00
Marc-André Lureau
550deb348a gdk/win32: remove extra allocation for \r removal
Although I can't find explicit documentation for clipboard pointer, it
seems to be possible to modify clibpoard memory without side-effects.

According to MSDN,
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366596%28v=vs.85%29.aspx

"The global and local functions are supported for porting from 16-bit
code, or for maintaining source code compatibility with 16-bit
Windows. Starting with 32-bit Windows, the global and local functions
are implemented as wrapper functions that call the corresponding heap
functions using a handle to the process's default heap."

"Memory objects allocated by GlobalAlloc and LocalAlloc are in private,
committed pages with read/write access that cannot be accessed by other
processes. Memory allocated by using GlobalAlloc with GMEM_DDESHARE is
not actually shared globally as it is in 16-bit Windows. This value has
no effect and is available only for compatibility. "

https://bugzilla.gnome.org/show_bug.cgi?id=711553
2013-11-11 09:07:42 -05:00
Carlos Garcia Campos
c2295bfde1 gtkprintbackendfile: Check the GtkPrintSettings passed to file_printer_get_options is not NULL before using it
https://bugzilla.gnome.org/show_bug.cgi?id=703784
2013-11-11 09:07:34 -05:00
Timm Bäder
f23e1cdde5 GtkListBox: Expand the placeholder
https://bugzilla.gnome.org/show_bug.cgi?id=711255
2013-11-11 09:07:26 -05:00
David King
273d4b7cc2 stack: Use g_object_notify_by_pspec()
https://bugzilla.gnome.org/show_bug.cgi?id=711611
2013-11-11 09:07:16 -05:00
David King
8e7516ac85 stack: Use g_object_class_install_properties()
https://bugzilla.gnome.org/show_bug.cgi?id=711611
2013-11-11 09:07:10 -05:00
Chenthill Palanisamy
bd9ed0462c Do not reset the waiting_for_printer on status change
* gtk/gtkprintunixdialog.c (printer_status_cb): Do not reset the
waiting_for_printer on status change as the default printer might
get added later.

https://bugzilla.gnome.org/show_bug.cgi?id=577642
2013-11-11 09:06:13 -05:00
Cody Russell
1b116f66a0 Win32: Honor the geometry when GDK_HINT_MAX_SIZE is set.
The MINMAXINFO struct was being populated based upon geometry hints when
GDK_HINT_MAX_SIZE flag was enabled, then promptly having its values blown
away with default values.

https://bugzilla.gnome.org/show_bug.cgi?id=711110
2013-11-11 09:03:44 -05:00
Matthias Clasen
0f775656ad Make treeview cursor handling a bit more robust
Clearing the model in a GtkTreeSelection::changed handler was
crashing. While it is not a 100% kosher thing to do, lets be
more robust here.
2013-11-11 09:01:32 -05:00
Jasper St. Pierre
76f585e086 gdkwindow-x11: Don't set WM_TAKE_FOCUS if accept_focus is FALSE
Otherwise, we'll be in the "Globally Active" mode instead of the
"No Input" mode.

https://bugzilla.gnome.org/show_bug.cgi?id=710389
2013-11-11 08:58:38 -05:00
Jasper St. Pierre
feaae5db5e stackswitcher: Only show a button if the stack child is visible 2013-11-11 08:57:48 -05:00
Khaled Hosny
fda16462cf Fix accelerators 2013-11-05 01:00:30 +02:00
Dimitris Spingos
08357036b6 Updated Greek translation 2013-11-04 10:04:17 +02:00
Alexander Larsson
e92d13551b GtkWidget: Fix clipping to large subwindows
_gtk_widget_draw_internal() was clipping by passing the subwindow
sizes as a path to cairo_clip(). This was breaking for windows
larger than 23 bits in width/height, due to cairo using fixed point
(24.8) for the path coordinates.

We fix this by pre-clipping the subwindow region to the existing
cairo clip region in the full 32bit gdkwindow precision. This fixes
the GooCanvas Large Items test.

https://bugzilla.gnome.org/show_bug.cgi?id=710958
2013-10-28 12:02:28 +01:00
Matthias Clasen
8ee2c87acb Respect deprecated button images setting
I have been convinced that it is a bad idea to change the behaviour
at the same time as deprecating it, so go back to respecting the
Gtk/ButtonImages xsetting in buttons created with
gtk_button_new_from_stock() when it is set.

The setting as well as the function are still deprecated, and the
default value of the setting will remain FALSE.
2013-10-24 20:37:43 -04:00
Matthias Clasen
a653b1b36b Respect deprecated menu images setting
I have been convinced that it is a bad idea to change the behaviour
at the same time as deprecating it, so go back to respecting the
Gtk/MenuImages xsetting in GtkImageMenuItem when it is set.

The setting as well as the widget are still deprecated, and the
default value of the setting will remain FALSE.
2013-10-24 20:37:34 -04:00
Olivier Brunel
949f353de4 Fix key "Page_Down" identified as "Next"
Since 49c4ad2f the order between "Page_Down" & "Next" had been changed (due to
sorting) and this resulted in the Page Down key being identified as "Next"
instead of "Page_Down"

"Page_Up" wasn't affected, since it comes before "Prior"

Signed-off-by: Olivier Brunel <jjk@jjacky.com>

https://bugzilla.gnome.org/show_bug.cgi?id=710411
2013-10-24 18:49:14 -04:00
Bastien Nocera
046b303517 GtkScrolledWindow: Disconnect from frame clock properly
The tick callback IDs from GtkWidget aren't timeouts, so
use the correct function to disconnect from them.

Spotted by Benjamin Otte <otte@redhat.com>

https://bugzilla.gnome.org/show_bug.cgi?id=710666
2013-10-23 15:23:47 +02:00
Bastien Nocera
1106b8af8c GtkWidget: Avoid lingering clock frame updates
For some widgets, like GtkTreeView, which setup a clock frame
update during realize, it was possible to call
gdk_frame_clock_begin_updating() twice, but only ever disconnecting
from it once. This happens because the realized flag is set at an
unpredictable time by the GtkWidget's realize implementation.

Keep the signal handler ID from us connecting to the "update" signal
to avoid connecting to it twice.

This fixes high wake-up count from any application using GtkTreeView,
even idle ones.

https://bugzilla.gnome.org/show_bug.cgi?id=710666
2013-10-23 15:23:47 +02:00
Matthias Clasen
90dee25e4d Icon theme: Hardcode fallback through the 'gnome' icon theme
This is what we used to get through the Net/FallbackIcontheme
setting. Nobody has ever set this setting to a different value,
and people have come to rely on GTK+ applications getting their
icons this way.
2013-10-21 13:00:30 -04:00
Stas Solovey
8e93ffda3a Updated Russian translation 2013-10-18 18:25:45 +04:00
Christian Kirbach
c31ea222c5 Updated German translation 2013-10-16 21:32:28 +02:00
Matthias Clasen
15e4175211 3.10.2 3.10.2 2013-10-15 22:55:14 -04:00
Matthias Clasen
c250008f6b Update expected a11y test output
This changed due to improved accessible names for GtkImage
in 434d4be595
2013-10-15 22:55:14 -04:00
Matthias Clasen
eab6fc00df Remove debug spew 2013-10-15 22:38:36 -04:00
Timothy Arceri
512f288ec2 Remove superfluous g_file_test()
https://bugzilla.gnome.org/show_bug.cgi?id=168530
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
2013-10-15 21:45:26 -04:00
Matthias Clasen
bd75b6312d Revert "GtkAboutDialog: Add missing calls to g_type_ensure() for used types"
This reverts commit ad963d1b3a.
2013-10-15 21:42:00 -04:00
Alexander Larsson
0f9ce285c5 GtkBuilder: Fall back to gtk_test_register_all_types if type lookup fails
This is important because the dlsym() approach can fail if gtk was
loaded with RTLD_LOCAL.

https://bugzilla.gnome.org/show_bug.cgi?id=710096
2013-10-15 21:40:53 -04:00
Alexander Larsson
ad963d1b3a GtkAboutDialog: Add missing calls to g_type_ensure() for used types
If nothing else used these types then the template instantiation will
fail.

https://bugzilla.gnome.org/show_bug.cgi?id=710096
2013-10-15 21:40:53 -04:00
Bastien Nocera
9d74f186c9 gdkevents.h: Mention _get_source_device()
It's too easy getting bitten by the ->device red herring, thinking
that it's the original input device the event originated from.

https://bugzilla.gnome.org/show_bug.cgi?id=709621
2013-10-15 21:32:24 -04:00
Matthias Clasen
b8ef346e38 Fix an oversight
Followup for 3c41d4865e
2013-10-15 21:29:06 -04:00
Johannes Wellhöfer
75a6a8fbe2 Also revert enable-mnemonics code in gtkwindow, which was forgotten in commit 34cf40e95c.
https://bugzilla.gnome.org/show_bug.cgi?id=708346
2013-10-15 21:26:14 -04:00
Matthias Clasen
d25ee71071 Fall back to non-symbolic icons
When doing fallback for symbolic icons, we first shorten
the name at dashes while preserving the -symbolic suffix.
But after exhausting that, we should also try stripping
the suffix.

https://bugzilla.gnome.org/show_bug.cgi?id=708163
2013-10-15 21:20:45 -04:00
Olivier Brunel
1922b7d377 tooltip: Fix possible wrong placement
When showing a tooltip on the edge of a monitor, the tooltip could be wrongly
placed and be shown going from one monitor to the next.

This happened because the current_window wasn't set visible, and when it wasn't
the returned allocated size would be 1, hence wrong calculations.

Signed-off-by: Olivier Brunel <jjk@jjacky.com>

https://bugzilla.gnome.org/show_bug.cgi?id=698730
2013-10-15 20:38:31 -04:00
Yosef Or Boczko
f90e54a0b9 Fix a warning
The PangoWrapMode enum has identical layout to GtkWrapMode,
but using the two interchangably causes (justified) compiler
warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=709697
2013-10-15 20:10:13 -04:00
Matthias Clasen
0e866bbba1 Set an error when loading a GtkIconInfo fails
Failure to do so leads to assertion failures.
https://bugzilla.gnome.org/show_bug.cgi?id=710073
2013-10-15 20:00:57 -04:00
Matthias Clasen
d475906d68 Wayland: avoid accidental export of internal symbols
Some symbols in the generated Wayland code were getting
decorated with WL_EXPORT, causing them to show up in the
libgdk exports. We don't want that.

https://bugzilla.gnome.org/show_bug.cgi?id=710141
2013-10-15 19:43:10 -04:00
Piotr Drąg
c9beb91b39 Updated POTFILES.in 2013-10-16 00:33:07 +02:00
Matthias Clasen
be4a6e301b Wayland: fix a crash in opaque region handling
We may get a NULL region passed to the backend, which means
'nothing is opaque'. In that case, don't crash, but pass
the information on to the compositor.

http://bugzilla.gnome.org/show_bug.cgi?id=709854
2013-10-15 18:21:08 -04:00
Ihar Hrachyshka
578655a9cd Updated Belarusian translation. 2013-10-15 23:48:22 +03:00
Matthias Clasen
3c41d4865e Fix a crash in icon handling
The load_error was freed in two places.
Fix based on a patch in
https://bugzilla.gnome.org/show_bug.cgi?id=709967
2013-10-15 08:08:59 -04:00