Commit Graph

31556 Commits

Author SHA1 Message Date
Marc-Antoine Perennou
aa350e5aef build: Fix MKDIR_P for recent automake
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2012-07-15 12:58:29 -04:00
Bastian Winkler
74041bb6ea grid: Add missing guard to gtk_grid_get_child_at()
Add missing guard to make sure it's called with a GtkGrid argument.

https://bugzilla.gnome.org/show_bug.cgi?id=677363
2012-07-15 12:58:29 -04:00
Matthias Clasen
253d8037ec Remove gtk_accel_group_query from the docs
It is marked as "internal" in the headers, and the struct it
returns is not documented either.
2012-07-15 12:58:28 -04:00
Matthias Clasen
494f3cc9cd Link to the 2.x deprecated index in the migration guide 2012-07-15 12:58:28 -04:00
Matthias Clasen
6235545ce7 Document "set" properties a bit
Both GtkTextTag and GtkCellRenderer make use of "set" properties
which are a bit special. Document this.

https://bugzilla.gnome.org/show_bug.cgi?id=531319
2012-07-15 12:58:28 -04:00
Matthias Clasen
167df3ea03 Correct the docs for GDK_MSB_FIRST
https://bugzilla.gnome.org/show_bug.cgi?id=571254
2012-07-15 12:58:27 -04:00
Matthias Clasen
5a6897659e Mention cairo_save/restore in the ::draw migration docs
https://bugzilla.gnome.org/show_bug.cgi?id=646798
2012-07-15 12:58:27 -04:00
Matthias Clasen
9e5ad61f71 Reword lockbutton docs
https://bugzilla.gnome.org/show_bug.cgi?id=659613
2012-07-15 12:58:26 -04:00
Matthias Clasen
65d477ea27 Clarify the gtk_style_context_add_provider docs
https://bugzilla.gnome.org/show_bug.cgi?id=643490
2012-07-15 12:58:26 -04:00
Matthias Clasen
7f7ed154d8 Mention GTK_DIALOG_NO_SEPARATOR in migration docs
http://bugzilla.gnome.org/show_bug.cgi?id=647779
2012-07-15 12:58:26 -04:00
Matthias Clasen
8190fae7f1 GtkToolbar: Prevent accidental drag starts
We don't want to start drags on double- or triple clicks, and
doing so causes problems for embedded range widgets.

https://bugzilla.gnome.org/show_bug.cgi?id=675535
2012-07-15 12:58:25 -04:00
Matthias Clasen
e9425fa7df Fix the build on Solaris
http://bugzilla.gnome.org/show_bug.cgi?id=663991
2012-07-15 12:58:25 -04:00
Christian Kirbach
1e62a5333b Updated German translation 2012-07-15 18:22:08 +02:00
Emmanuele Bassi
7feef179c5 docs: Escape bare '#' in GdkRGBA string definitions
GTK-Doc does not like bare '#', so let's turn them into &num;.
2012-07-15 00:52:45 -04:00
Руслан Ижбулатов
05e960d303 docs: libgailutil is now called libgailutil-3 2012-07-15 00:52:37 -04:00
Matthias Clasen
770e564675 Add since annotations to some enum values
The things related to touch and smooth scrolling were 3.4 additions,
so mark them as such.

https://bugzilla.gnome.org/show_bug.cgi?id=676329
2012-07-15 00:52:27 -04:00
Holger Berndt
e344f795b4 Document removing of accelerators
https://bugzilla.gnome.org/show_bug.cgi?id=676243
2012-07-15 00:52:01 -04:00
Matthias Clasen
4f34e0db3d gtk-demo: Update language in colorsel demo
We're no longer demoing GtkColorSelection, it is GtkColorChooser now.
2012-07-15 00:51:47 -04:00
Matthias Clasen
40260587e1 file printbackend: Protect a callback by GDK_THREADS_ENTER
https://bugzilla.gnome.org/show_bug.cgi?id=649569
2012-07-15 00:51:25 -04:00
Volker Sobek
0d69020d6c doc: Add missing CDATA around a XML programlisting
https://bugzilla.gnome.org/show_bug.cgi?id=675423
2012-07-15 00:51:06 -04:00
Cosimo Cecchi
e99ac6c531 entry: guard for != NULL before unreffing the pixbuf
In gtk_entry_get_icon_pixbuf() we unreference the pixbuf that
_gtk_icon_helper_ensure_pixbuf() gives us back, since the function
doesn't return a reference, and by doing so we're able to return the
reference owned by the cached icon helper.
Since the icon helper method can return NULL though, if no icon
properties have been set on it, guard for != NULL before unreffing the
pixbuf, as that would cause a critical warning.

https://bugzilla.gnome.org/show_bug.cgi?id=679537
2012-07-09 11:22:20 -04:00
Alexander Larsson
72feb95edb Handle transparent colors better in GtkStyle emulation
We can't expose colors with alpha in the GtkStyle colors, since
GdkColor has no alpha. Currently we throw away alpha completely,
which fails very badly for completely transparent backgrounds,
which now is the default for most widgets, as it typically
end up with black-on-black.

We handle this by falling back on the default/previous colors for
transparent colors. This is is simple and avoids complete failure.

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

(cherry picked from commit 1042372670)
2012-06-30 13:24:43 -04:00
Chun-wei Fan
2c01d52a7e Bug 676077: Fix handling of Keyboard Input on Windows
Don't use ASCII control characters to denote the input of Esc, Tab,
Return/Enter, Backspace and Delete, as it seems that it is not how
Windows handle them, and they cause weird characters to appear in the
input field on GTK+3 programs in non-English Windows.  Instead, let
these keys be handled as-is on Windows, like what is done in GTK+-2.x.

Checked with mclasen on IRC, and thanks to the people who verified the
patch to not break anything on English Windows.
2012-06-25 23:24:38 +08:00
Shankar Prasad
6528476bcf Fixed the issue reported in Bug #613561 2012-06-22 16:28:35 +05:30
Pavel Holejsovsky
93264446bb GtkImage: fix get_property('stock')
The code was trying to get icon's name instead of icon's stock-id.

https://bugzilla.gnome.org/show_bug.cgi?id=678407
2012-06-19 16:27:42 +02:00
Benjamin Otte
f4bd8a161c iconview: Special case the empty iconview
If the icon view is empty, we cannot get a reasonable size request from
the cell renderers. So all values we would compute are pretty much
useless.
So we special case it.

This also gets rid of a bunch of crashers from div-by-0 in corner cases.

https://bugzilla.gnome.org/show_bug.cgi?id=677809
2012-06-19 14:21:15 +02:00
Benjamin Otte
d5685b391e iconview: Add a descriptive function
I want to special-case empty icon views in the sizing code to avoid
various bugs, and having such a function is nice.
2012-06-19 14:21:15 +02:00
Benjamin Otte
265e65f7a3 iconview: Ensure icons are at least 1x1 pixels
This is useful for 2 reasons:
(1) Items actually exist and are clickable
(2) Size computations don't divide by 0

I've not seen problems with this in the wild (mostly because
item-padding defaults to non-0), but noticed this while fixing other
bugs.
2012-06-19 14:21:15 +02:00
Benjamin Otte
cb190f7d2a iconview: Include column spacing in calculation
The function is probably almost never used, so nobody has ever seen this
bug, but we should still get it right.

https://bugzilla.gnome.org/show_bug.cgi?id=677809
2012-06-19 14:21:15 +02:00
Benjamin Otte
29da4cf295 iconview: clamp item size to be in [minimum, natural]
Minimum size is necessary so you can see the item. If we can't get that
we need to scroll.
Natural as the maximum is used so that the spacing between items doesn't
increase when resizing the iconview, but empty space is added to the
right/bottom instead.

https://bugzilla.gnome.org/show_bug.cgi?id=677809
2012-06-19 14:21:15 +02:00
Benjamin Otte
a3018f97c8 iconview: Don't add item-padding
... to item sizes when there are no items.
2012-06-19 14:21:15 +02:00
Benjamin Otte
a1c8c8af85 iconview: Add documentation abour different sizes
Did I mention I hate code that has different kinds of "boxes" or
coordinate systems but no clear way to distinguish them?
It's all ints here...

https://bugzilla.gnome.org/show_bug.cgi?id=677809
2012-06-19 14:20:39 +02:00
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