Commit Graph

42278 Commits

Author SHA1 Message Date
Emmanuele Bassi
39cb51bb07 settings: Fix the type annotation for color-hash
The (element-type) annotation cannot be used with properties that return
container types like GHashTable; we need to use the (type) annotation.

https://bugzilla.gnome.org/show_bug.cgi?id=750489
2015-07-07 10:20:06 -04:00
Emmanuele Bassi
ba750ec9d2 builder: Skip introspecting lookup_callback_symbol()
Opaque function pointers as return values are not really usable in high
level languages, even via introspection.
2015-07-07 10:19:59 -04:00
Emmanuele Bassi
21b616e2b3 docs: Fix annotation for GtkGLArea::resize signal
We need to document all arguments for the signal, for both gtk-doc and
introspection.
2015-07-07 10:19:50 -04:00
Emmanuele Bassi
13b84cd35f docs: Improve deprecation notices for GtkSettings
The button and menu item icons settings are deprecated; application
developers should control whether or not a widget should show an icon,
using the existing API.

https://bugzilla.gnome.org/show_bug.cgi?id=750718
2015-07-07 10:19:41 -04:00
Emmanuele Bassi
5ae01c4f2c docs: Improve deprecation notices for GtkMisc
Point to the replacement properties and functions.

https://bugzilla.gnome.org/show_bug.cgi?id=750718
2015-07-07 10:19:33 -04:00
Emmanuele Bassi
dacdf753bf docs: Improve deprecation notice for rules-hint property
Specify that the theme is wholly in control.

https://bugzilla.gnome.org/show_bug.cgi?id=750718
2015-07-07 10:19:27 -04:00
Emmanuele Bassi
ddade37d79 docs: Improve deprecation notices for GtkImageMenuItem properties
Should help porting code away from the deprecated GtkImageMenuItem
class.

https://bugzilla.gnome.org/show_bug.cgi?id=750718
2015-07-07 10:19:21 -04:00
Emmanuele Bassi
3b0be42f72 docs: Add deprecation notices for GtkAlignment properties
We want people to port their code away from deprecated classes, and this
helps finding a replacement.

https://bugzilla.gnome.org/show_bug.cgi?id=750718
2015-07-07 10:19:14 -04:00
Carlos Soriano
d67cf43be9 gtklistboxrow: propagate in the draw vfunc
So objects connected by g_signal_connect_after actually get
the signal.
This was causing an issue in the dnd highlight, since there
a cairo rectangle is draw using g_signal_connect_after on the draw
signal.
2015-07-07 10:18:57 -04:00
Benjamin Otte
227b5a81bc render: Fix ridge/groove border rendering
The typo strikes again!
2015-06-23 22:31:25 +02:00
Niels Nesse
3258d5ba2e x11/gl: Removing some more legacy GL calls
They are not required any more.

http://bugzilla.gnome.org/show_bug.cgi?id=746668
(cherry picked from commit 641e280311)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
2015-06-22 12:35:59 +01:00
Emmanuele Bassi
b45caa8999 x11/gl: Do not call glEnable/glDisable with GL_TEXTURE_2D
These are fixed pipeline functions, and Mesa will warn (if debugging
messages are enabled). At best, they are poinless calls.

(cherry picked from commit 6bd7526ee7)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
2015-06-22 12:35:44 +01:00
Christian Kirbach
8e4cd4cc7a Updated German translation 2015-06-14 08:53:41 +00:00
Benjamin Otte
ebdd24ac3a fontchooser: Don't cause "row-changed" signal in cell data func
The font chooser delays creating the font description from the font face
as long as possible (it's slow). Because we use fixed height mode, we
only have to create font descriptions for rows we are actually going to
show.

This was achieved by looking at the font description column and if it
was NULL, we created a font description and gtk_list_stiore_set() it.
Unfortunately this caused a "row-changed" signal to be emitted and this
emission could happen during the cell data func.
And that caused infinite loops with accessibility when you were unlucky.

This change replaces the NULL font description with an empty one and
instead of setting the correct font description, we
pango_font_description_merge() it in. This way, the list store doesn't
change and no signals are emitted.

https://bugzilla.redhat.com/show_bug.cgi?id=1197267
2015-06-12 21:23:34 +02:00
Matthias Clasen
93abfb10ad 3.16.4 3.16.4 2015-06-10 10:47:19 -04:00
Matthias Clasen
3ef53101ab gtk-demo: Make hypertext demo work with touch
Make tapping on the links work.
2015-06-10 10:37:58 -04:00
Benjamin Otte
2cf5eddceb widget: Clarify docs on gtk_widget_set_double_buffered()
Also make them more scary so people really really don't use it as a
random knob when trying to make things go fast.

//bugzilla.gnome.org/show_bug.cgi?id=750505
2015-06-10 10:37:42 -04:00
Timm Bäder
b867f1970c gtkfilechooserbutton: Align the label to the left
Using GtkLabel's xalign property so the label doesn't jump around when
the button gets resized.

https://bugzilla.gnome.org/show_bug.cgi?id=750477
2015-06-10 10:34:22 -04:00
Rui Matos
d87769dcd5 main: Push the current event on the stack before we start needing it
The changes in commit 13e22e2030 made
_gtk_window_check_handle_wm_event() indirectly depend on
gtk_get_current_event_time() which relies on the current event being
available on the current_events stack.

Since the current event is only pushed on the stack afterwards we get
an invalid timestamp which breaks ewmh window moving.

This fixes the issue by pushing the current event before we start
relying on it being there in gtk_main_do_event() and, as a byproduct,
also fixes a potential memory leak when we have a rewritten event and
return early due to _gtk_window_check_handle_wm_event() being TRUE.

https://bugzilla.gnome.org/show_bug.cgi?id=750384
2015-06-08 13:44:30 +02:00
John Ralls
6ff49ee93d Bug 745957 - GTK+/Quartz >= 3.14.8: Symbol not found: _gtk_drag_cancel
Implement gtk_drag_cancel, made public in c160ba069 and 62616a71, in
gtkdnd-quartz.c.
2015-05-31 11:52:35 -07:00
John Ralls
673013ac67 Fix DnD Introspection on Quartz Backend.
Don't exclude the -quartz.c files from introspection_files.
2015-05-29 13:40:25 -07:00
Cédric Valmary
e2b9ac89b0 Updated Occitan translation 2015-05-29 20:27:17 +00:00
Matthias Clasen
bb0561f356 Fix a cornercase crash
If gtk_text_layout_move_cursor_visually is called with a
count of 0, we were passing NULL to a free function that
can't handle it. Don't do that.

https://bugzilla.gnome.org/show_bug.cgi?id=750058
2015-05-29 00:00:38 -04:00
Cosimo Cecchi
de93dd85e0 Use built-in gtk-update-icon-cache
To generate the icon cache files.

We want to avoid a dependency loop if possible; additionally, on some
Debian-based systems gtk-update-icon-cache maps to the GTK2 version of
the utility and the GTK3 version is renamed to
gtk-update-icon-cache-3.0.

To avoid a build dependency on GTK2, use the binary that we just built
in-tree.

https://bugzilla.gnome.org/show_bug.cgi?id=749593
2015-05-28 23:59:35 -04:00
Cosimo Cecchi
c73715db09 parse-sass: don't hardcode bash path
It's /bin/bash on some systems; just use /bin/sh instead.

https://bugzilla.gnome.org/show_bug.cgi?id=749593
2015-05-28 23:59:26 -04:00
Cosimo Cecchi
daa8320d45 tests: wait for draw before fetching tree view style
On some slower machines (e.g. an ARM OBS builder), this test is failing
with a race condition where we're trying to fetch the style before it's
applied.

https://bugzilla.gnome.org/show_bug.cgi?id=749593
2015-05-28 23:59:17 -04:00
Cosimo Cecchi
4e40260d73 placessidebar: escape tooltip text before setting it
gtk_tree_view_set_tooltip_column() specifies that markup in the text
should be escaped.
This fixes critical warnings when hovering over items in the sidebar for
bookmarks that have markup characters in their names.

https://bugzilla.gnome.org/show_bug.cgi?id=719683
2015-05-28 23:58:58 -04:00
Carlos Garnacho
873cc0e352 notebook: Fix assert in ::drag-motion
The drag destination might be empty, we shouldn't be checking whether
it contains pages at all. Instead, check the source notebook, which
ought to have a selected page if you're dragging something from there.

https://bugzilla.gnome.org/show_bug.cgi?id=749893
2015-05-26 18:02:03 +01:00
Carlos Garnacho
cef7b4670f scrolledwindow: reset more Indicator state on ::unmap
If a GtkScrolledWindow is just unmapped and promptly mapped again, the
indicators are left in a semi-visible state, so the GdkWindow isn't raised
properly above scrolledwindow content. This inconsistent state went away
the next time the indicator is hidden.

So, reset all state about indicator window visibility, animation
progress and conceil timer on ::unmap, this will be enough to make the
indicators start out hidden like on newly created scrolledwindows.
2015-05-22 21:24:32 +02:00
Jonas Ådahl
90ee25f8e9 GtkWindow: Don't assume no shadow width even when not supported
Even if a window doesn't support client side shadow
(gtk_window_supports_client_shadow returns FALSE), don't assume the
shadow width is zero, as CSD may have been enabled anyway (meaning
priv->client_decorated is TRUE). In that case we still need to report
the correct width.

https://bugzilla.gnome.org/show_bug.cgi?id=749451
2015-05-22 00:15:46 -04:00
Matthias Clasen
c0f0874cf9 Don't add strings on the stable branch
No need to upset translators with a temporary string that will
hopefully be replaced by an implementation at some point.
2015-05-18 08:59:02 -04:00
Martin Srebotnjak
aaee5f77ca Updated Slovenian translation 2015-05-17 20:49:44 +02:00
Martin Srebotnjak
64eead25c0 Updated Slovenian translation 2015-05-17 20:44:50 +02:00
Marek Černocký
5185ba38bb Updated Czech translation 2015-05-17 10:32:59 +02:00
Piotr Drąg
23374f9f83 Updated Polish translation 2015-05-15 17:56:44 +02:00
Piotr Drąg
509741b1d7 Updated POTFILES.in 2015-05-15 17:50:57 +02:00
Marek Kasik
40b489b6e2 printing: Check connection to remote CUPS server on correct port
Add parameter for specification of port to gtk_cups_connection_cups_new().
Use default port returned by ippPort() if the given port is lower than 0.

https://bugzilla.gnome.org/show_bug.cgi?id=693738
2015-05-13 12:30:15 +02:00
Matthias Clasen
4217fccbc9 3.16.3 3.16.3 2015-05-11 14:47:17 -04:00
Matthias Clasen
086e885c02 Fix a11y tests
The output of the about dialog test is affected by the keynav
fixes.
2015-05-11 14:47:17 -04:00
Lars Uebernickel
b737bfec24 Allow overriding WM_CLASS from the command line
Even when the program itself calls gdk_set_program_class(). There's
currently no way for this function to be called without breaking gdk's
--class command line option, because you cannot call it before
gtk_init().

https://bugzilla.gnome.org/show_bug.cgi?id=747634
2015-05-11 14:22:15 -04:00
Matthias Clasen
570fd6c185 gtk-demo: Remove an unncessary define
The changedisplay example no longer uses and deprecated
API, so don't disable deprecations.
2015-05-11 14:22:08 -04:00
Matthias Clasen
151e74c12d Revert "Work around a pkg-config bug"
This reverts commit 57751fa391.

I've been told that this is not, in fact, a pkg-config bug,
but a pkg-config feature.
2015-05-11 14:21:40 -04:00
Philip Chimento
09408aca1e quartz: Non-implementation of GdkGLContext
This makes sure the Quartz backend returns an error when asked to create
a GL context, rather than crashing because of a NULL vfunc.

https://bugzilla.gnome.org/show_bug.cgi?id=740199
2015-05-11 14:21:32 -04:00
Sjoerd Simons
103346c780 notify test: Don't test object relying on dbus connections
Don't test types that rely on a pre-existing dbus session bus.

https://bugzilla.gnome.org/show_bug.cgi?id=749009
2015-05-11 14:21:04 -04:00
Matthias Clasen
ed9b598e9b GtkRecentChooser: Use a better busy cursor 2015-05-11 14:20:57 -04:00
Matthias Clasen
927d8e84dc GtkPrintUnixDialog: Use a better busy cursor 2015-05-11 14:20:49 -04:00
Garrett Regier
9c307fedc9 GtkFontChooserWidget: Remove unused struct field
This was added accidentally in a recent patch.

Signed-off-by: Garrett Regier <garrettregier@gmail.com>

https://bugzilla.gnome.org/show_bug.cgi?id=748992
2015-05-11 14:20:27 -04:00
Jakub Steiner
27130ab6b1 Adwaita: tone down popover dropshadow 2015-05-11 14:20:08 -04:00
Jonas Ådahl
0f18e90734 GtkWindow: Manually set CSD should enable shadow width calculation
If CSD is enabled with shadow even though it "shouldn't"*, the width
should still be calculated correctly. This fixes a regression caused by
b1e5ad469c.

* gtk_window_should_use_csd () returns false

https://bugzilla.gnome.org/show_bug.cgi?id=748615
2015-05-11 14:19:47 -04:00
Jonas Ådahl
be8ff8e56a GtkWindow: Get the correct shadow width even before window is realized
The window state 'client_decorated' will only be set the window is being
realized. If anyone tries to get the shadow size before that it'd get
the with as if there always was no shadow.

This avoids negative sized opaque regions caused by the allocation being
smaller than shadow.

https://bugzilla.gnome.org/show_bug.cgi?id=748615
2015-05-11 14:19:32 -04:00