Commit Graph

31524 Commits

Author SHA1 Message Date
Hans de Goede
99a6b4ffa8 iconview: gtk_icon_view_compute_n_items_for_size bugfix
While working on the "iconview: Don't shrink items" patch I noticed that
gtk_icon_view_compute_n_items_for_size modifies the natural and minimum
item sizes it got from gtk_icon_view_get_preferred_item_size when
calculating the max number of items which will fit, but later on it
checks against these sizes when calculating the item_size, and these
checks expect these values to be unmodified.

This patch fixes this by modifying the natural and minimum values in
advance and doing all computations with modified values.

https://bugzilla.gnome.org/show_bug.cgi?id=677809
2012-06-19 14:20:39 +02:00
Benjamin Otte
eb74c6f7d0 iconview: Don't shrink items
The previous code assumed that the width was always enough for more than
one column, which is obviously not correct when a number of columns is
hardcoded.

With this patch, it will now always check that the width is enough and
otherwise cause scrolling.

https://bugzilla.gnome.org/show_bug.cgi?id=677809
2012-06-19 14:20:33 +02:00
Matthias Clasen
98ad869c9a Fix up the deprecation annotation for gtk_widget_get_pointer
When I added the versioned annotation, I accidentally backdated
it, so the Deprecated: tag in the docs said 3.4, but the annotation
said 3.0. Fix it so we say 3.4 in both places.
2012-06-13 19:10:56 -04:00
Christian Persch
580a83b1ab application: Really allow NULL application-id
While the docs were adjusted to claim that NULL application-id is allowed,
the code actually segfaulted on it.
(cherry picked from commit 69d6e7110094fed2cc8770683ac57a61f84949ff)
2012-06-12 16:15:31 +02:00
Matthias Clasen
0634796aa6 GtkFontSel: Don't try to set the cursor on invalid iters
This causes a lot of warnings.
https://bugzilla.gnome.org/show_bug.cgi?id=677293
2012-06-01 17:15:02 -04:00
Matthias Clasen
344d5cd1b4 GtkFontSelection: Populate list models atomically
This is just a cosmetic fix.
2012-06-01 17:14:52 -04:00
Matthias Clasen
20083af049 Fix build with --enable-debug
(cherry picked from commit 18db64749f)
2012-05-26 20:45:59 -04:00
Christian Kirbach
9fb442c254 [l10n] Updated German translation 2012-05-19 11:39:45 +02:00
Owen W. Taylor
f31856dc02 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.

Backported-By: Ray Strode

https://bugzilla.gnome.org/show_bug.cgi?id=675167
2012-05-18 21:13:27 -04:00
Ray Strode
50ea273bc1 gtkuimanager: don't use g_clear_pointer
it's too new and cool to hang out with gtk+ 3.4.
2012-05-18 19:21:53 -04:00
Juan Pablo Ugarte
e83ec9359c Chain up custom_tag_start() propertly.
Fixes bug #675899 "Infobar not loadable by GTKBuilder (using python gi introspection)"
2012-05-18 19:28:04 -03:00
Bastien Nocera
375a297b2c statusicon: Fix implicit declaration warning
gtkstatusicon.c:1333:4: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]

Added in commit c837809960
2012-05-17 15:17:55 -04:00
Fernando Lemos
e694bd75f6 statusicon: use absolute delta to find the nearest icon size
Otherwise, if we only look at (pixel_size - stock_size), we miss the
case when the pixel size is smaller than any provided stock size.

https://bugzilla.gnome.org/show_bug.cgi?id=673749
2012-05-17 15:17:55 -04:00
Bastien Nocera
2e51d827de gdkoffscreenwindow: Fix compilation
https://bugzilla.gnome.org/show_bug.cgi?id=676262
2012-05-17 18:49:09 +01:00
Matthias Clasen
18de282771 Fix a case of 'stuck grab'
This was showing up when using a combo box in list mode. After popping
up the list, the keyboard grab appeared stuck. What was stuck here is
only the client-side grab, since we forgot to clean up our grabs
when receiving an UnmapNotify.

This bug was introduced in 1c97003664.
2012-05-16 18:19:23 -04:00
Matthias Clasen
48786a3dbc Be more careful when freeing ui manager nodes
https://bugzilla.redhat.com//show_bug.cgi?id=812035 has
a stacktrace that shows recursion via
free_node -> unref -> dispose -> ui manager api
which ends in a crash, since we run free_node over the entire
tree and it leaves lots of dangling pointers behind.
So, better be careful by setting all pointers to NULL after
freeing them.
2012-05-16 18:19:23 -04:00
Martin Pitt
4b2e929774 grid: add missing transfer annotation
gtk_grid_get_child_at() is missing a transfer annotation for the returned
widget, making it not introspectable.
2012-05-16 18:02:26 +02:00
Bastien Nocera
f78cf0806b gdkoffscreenwindow: Don't crash when resetting cursor
When the toplevel is a GdkOffscreenWindow which doesn't
implement the set_device_cursor() vfunc, we would have
crashed. Implement a dummy ->set_device_cursor vfunc.

https://bugzilla.gnome.org/show_bug.cgi?id=675809
2012-05-15 18:24:21 +01:00
Andika Triwidada
8d08ae00e3 [l10n] Updated Indonesian translation 2012-05-15 22:44:19 +07:00
Matthias Clasen
c48cc7f1c6 iconview: Bring back rtl flipping
This was lost in the recent layout rewrite.
2012-05-15 08:08:13 -04:00
Edward Sheldrake
a3314b5c40 GDK X11 DND: Fix infinite loop
Related: https://bugzilla.gnome.org/show_bug.cgi?id=664646
2012-05-15 08:08:13 -04:00
Frédéric Péters
03be723395 Fix links to developer.gnome.org 2012-05-13 19:46:17 +02:00
Matthias Clasen
7ee4667bea Bump version 2012-05-11 19:23:47 -04:00
Matthias Clasen
4668d8c579 Fix distcheck 3.4.3 2012-05-11 19:22:45 -04:00
Matthias Clasen
2b68bab9ab Update for 3.4.3 2012-05-11 18:33:17 -04:00
Cosimo Cecchi
4ba4ee03ae box: set orientation style classes when setting orientation
Since we override the property, we have to call the internal helper
manually.
2012-05-11 18:00:39 -04:00
Bastien Nocera
c2d436bafb 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.
2012-05-11 18:00:23 -04:00
Michael Natterer
e30d8f8a5a 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 71164e57b9)
2012-05-11 18:00:13 -04:00
Michael Natterer
df4d6154db quartz: handle yet another dead tilde variant
which is delivered by the US-International keyboard layout.
2012-05-11 17:59:52 -04:00
Rico Tzschichholz
d72a712eed gtk: Add private headers to EXTRA_DIST
This got lost with 985881ffcc
2012-05-11 17:59:41 -04:00
John Ralls
0036683db7 [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.
2012-05-11 17:59:06 -04:00
Federico Mena Quintero
438e1ea08b 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>
2012-05-11 17:58:37 -04:00
Marc-André Lureau
e5246cabb6 gdk: do not send leave event on touchpad button release
This is along the changes introduced in
bd55519f7e,
A TOUCHPAD device behaves like a mouse"

https://bugzilla.gnome.org/show_bug.cgi?id=674549
2012-05-11 17:58:10 -04:00
Cosimo Cecchi
a68d903b1a 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
2012-05-11 17:57:59 -04:00
Cosimo Cecchi
302696b4c8 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
2012-05-11 17:57:52 -04:00
David King
f20290479b docs: Improve GtkMessageDialog description
Add mention of default setting of GtkWindow:skip-taskbar-hint.

https://bugzilla.gnome.org/show_bug.cgi?id=587873
2012-05-11 17:57:41 -04:00
David King
8cf5b21797 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
2012-05-11 17:57:35 -04:00
David King
08159c8317 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
2012-05-11 17:57:26 -04:00
Rui Matos
fe48111e60 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
2012-05-11 17:57:07 -04:00
Michael Biebl
79149defd0 build: Fix out-of-tree build of widget-factory demo application
https://bugzilla.gnome.org/show_bug.cgi?id=674192
2012-05-11 17:56:57 -04:00
Matthias Clasen
e28b927c05 Remove lies
We forgot the documentation when we simplified the GtkApplication
session api.
2012-05-11 17:44:33 -04:00
Matthias Clasen
2aa69bde73 Fix unclosed comments 2012-05-11 16:11:43 +02:00
Benjamin Otte
f66e835aa9 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.
2012-05-11 16:09:28 +02:00
Benjamin Otte
2d8655eebf 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.
2012-05-11 16:09:19 +02:00
Benjamin Otte
f3cde19426 iconview: Bring back per-row contexts
Apparently GtkCellAreaContext is broken enough to not allow multiple
allocations...
2012-05-11 16:09:12 +02:00
Benjamin Otte
fdcef2a38b iconview: Move wrap width adjustment to size request code 2012-05-11 16:09:04 +02:00
Benjamin Otte
01f65de7d7 iconview: Fix negative natural size request on empty iconview 2012-05-11 16:08:58 +02:00
Benjamin Otte
62eb034927 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.
2012-05-11 16:08:51 +02:00
Benjamin Otte
ad2eabe557 iconview: Redo layouting 2012-05-11 16:08:41 +02:00
Benjamin Otte
77904e1f40 iconview: Respect item width in size requestr code 2012-05-11 16:08:34 +02:00