Commit Graph

34086 Commits

Author SHA1 Message Date
Matej Urbančič
86f17b3a17 Updated Slovenian translation 2013-08-30 22:10:41 +02:00
Matthias Clasen
f09b01dd19 bump version 2013-08-30 10:08:16 -04:00
Matthias Clasen
a1b4c09901 Remove unintentional use of GLib 2.37 apis 3.8.4 2013-08-30 09:32:59 -04:00
Matthias Clasen
1351ad0e62 Bump version 2013-08-30 09:01:12 -04:00
Matthias Clasen
125263713b 3.8.3 3.8.3 2013-08-30 08:37:55 -04:00
Matthias Clasen
03058dd76a Fix make check 2013-08-30 08:14:59 -04:00
Carlos Garcia Campos
be41057a74 iconview: Respect the fixed item width when adjusting the wrap width
Restore the code the way it was in GTK2.

https://bugzilla.gnome.org/show_bug.cgi?id=680953
2013-08-30 07:10:17 -04:00
Matthias Clasen
876d5f0748 Fix keyboard activation of menu buttons
Keyboard activation relies on the menu not being visible,
so ensure that it isn't when the menu is attached.

Problem tracked down by Vincent Le Garrec,
https://bugzilla.gnome.org/show_bug.cgi?id=688738
2013-08-30 07:10:17 -04:00
Stef Walter
6279b6125a window: Some protection against nested set_focus() calls
Since set_focus() can triger events, have a check to make
sure state is still valid before firing is-focus signal.

https://bugzilla.gnome.org/show_bug.cgi?id=706152
2013-08-30 07:10:17 -04:00
Matthias Clasen
ad5889690a Make symbolic icons work with the current rsvg
The rsvg loader now restricts what external files it will
allow to load from an svg. Thus our xinclude trick doesn't work
anymore. To work around that, embed the payload in a  data: uri.
This is somewhat ugly, but the best we could come up with.
2013-08-30 07:10:17 -04:00
Matthias Clasen
785cba1e7b GtkSpinButton: disconnect signals in the accessible
Just as for GtkRangeAccessible, we were not even trying to disconnect
the signal handler from the adjustment. The same fix works here:
override the widget_set and widget_unset vfuncs.

https://bugzilla.gnome.org/show_bug.cgi?id=705692
2013-08-30 07:10:17 -04:00
Matthias Clasen
b355a88456 GtkRange: disconnect signals in the accessible
We were only disconnecting the signal in finalize, when
the widget was already unset. Instead, override the widget_set
and widget_unset vfuncs of GtkAccessible, and keep a reference
to the adjustment.

https://bugzilla.gnome.org/show_bug.cgi?id=705692
2013-08-30 07:10:17 -04:00
Matt Barnes
463d12cfcd GtkApplication: Do not assert sm_proxy != NULL in inhibit functions
Applications have no way of finding out if a session manager proxy was
successfully created in gtk_application_startup_session_dbus(), so it's not
appropriate for certain public GtkApplication functions to be asserting the
presence of a session manager proxy as if it were a programmer error.

This affects:

   gtk_application_inhibit()
   gtk_application_is_inhibited()

If sm_proxy is NULL, the function should just return silently.

In the case of gtk_application_uninhibit(), the application should only be
calling this if it obtained a valid cookie, which implies the presence of a
session manager proxy.  I noted that with a comment.

https://bugzilla.gnome.org/show_bug.cgi?id=701365
2013-08-30 07:10:17 -04:00
Matthias Clasen
727182f0f9 Avoid integer overflow
Use g_malloc_n in gdk_cairo_set_source_pixbuf when allocating
a large block of memory, to avoid integer overflow.

Pointed out by Bert Massop in
https://bugzilla.gnome.org/show_bug.cgi?id=703220
2013-08-30 07:10:17 -04:00
Matthias Clasen
3d5e50daa2 GdkScreenX11: Dispose visuals
If we let them hold onto their X resources until finalize,
it is too late.
2013-08-30 07:10:17 -04:00
Matthias Clasen
a27d2413aa GdkVisualX11: Add a dispose implementation
We need to be able to drop X resources before finalization.
2013-08-30 07:10:17 -04:00
Matthias Clasen
b613e3a1e0 GdkDeviceManagerXI2: chain up in constructed
Dispose does chain up, and the parent class' dispose expects
that the object has been fully constructed.
2013-08-30 07:10:17 -04:00
William Jon McCann
641a0ad8a8 Add missing allow-none annotations 2013-08-30 07:10:16 -04:00
John Lindgren
72b0bcbad5 Optimize gdk_x11_screen_supports_net_wm_hint()
Move the call to gdk_x11_atom_to_xatom_for_display() outside of the
search loop in gdk_x11_screen_supports_net_wm_hint().  In my test case
(running Audacious for about a minute), this reduced the total number of
hash table lookups performed from 370,000 to 230,000.

https://bugzilla.gnome.org/show_bug.cgi?id=702913
2013-08-30 07:10:16 -04:00
Jonh Wendell
d7798950ed GtkEntry: ellipsize placeholder text
The placeholder string is truncated when there's no
room for it in entry's width.

So, by ellipsizing it, the user can notice the text
was truncated so that they can workaround that by,
for example, maximizing the window.

https://bugzilla.gnome.org/show_bug.cgi?id=702763
2013-08-30 07:10:16 -04:00
Benjamin Otte
287464a64a cssimage: Add forgotten line
That line was already missing in the initial commit it seems.
2013-08-30 07:10:16 -04:00
Matthias Clasen
1add0e3f2a Fix anonymous assistants
GtkAssistant supports not showing the sidebar with the page
titles (if the page have no titles). Unfortunately, we were
hiding the sidebar in this case, but still rendering the frame
behind it, leading to a broken appearance.
2013-08-30 07:10:16 -04:00
Ek Kato
aaf32faedc Fix missing return from quartz_filter_keypress
(cherry picked from commit 0ae728e242)
2013-08-29 14:12:52 -07:00
Ek Kato
f2e7bce43a Bug 705750 Quartz input method doesn't work correctly for Chinese characters
Modified from original for Gtk3.

(cherry picked from commit bc35d5d166bcc4ec8ac074b792cc88f4f98c282e)
2013-08-16 11:18:11 -07:00
Cody Russell
e6dc6382c7 Fix a crasher that was introduced by 9ca802161e
due to preedit_str being initialized as an empty string rather than NULL.
2013-08-15 15:11:11 -05:00
Michael Hutchison
7e4ce73751 Bug 705182 Reset Cocoa IME state when immodule is reset
Commits the pre-edit string on receipt of focus_out and reset
commands.
Patch refinements by Cody Russell <bratsche@gnome.org> and
Ek Kato <ek.kato@gmail.com>

(cherry picked from commit e8b6b806250c1f958c33920c60ed41ab88016767)
2013-08-15 10:00:46 -07:00
Ek Kato
4ded4549f1 Bug 705181 Annoying beep on arrow keys
Original patch was a bit excessive, just needed to not forward the command.

(cherry picked from commit 40c429c2cb)
2013-08-13 11:35:22 -07:00
John Ralls
daee40abef Bug 701571 NSApp doesn't notice NSWindow destruction
Part 1 of the fix; part 2 awaits Glib developer approval (see
https://bugzilla.gnome.org/show_bug.cgi?id=704374) and is more
correctly associated with
https://bugzilla.gnome.org/show_bug.cgi?id=674108

(cherry picked from commit ccc30ea91966d0ec048a20530c892dfcace96b2b)
2013-08-10 14:22:01 -07:00
Daniel Sabo
db71def54a Reset cursor when mouse leaves a toplevel window.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=692548
2013-08-08 09:39:28 -05:00
Ryan Lortie
1e93ed9630 gtkicontheme: check for GdkPixbuf first
We checked for G_IS_LOADABLE_ICON() before GDK_IS_PIXBUF().

Since we made GdkPixbuf implement GLoadableIcon, the special case for
pixbufs is never used, and the much much slower GLoadableIcon path is
taken instead.  Move the GdkPixbuf one to be first to fix that.

https://bugzilla.gnome.org/show_bug.cgi?id=705320
2013-08-02 15:05:06 +02:00
Michael Hutchinson
205c4288a4 Bug 705181: Fix annoying beeping introduced by Mac IME
NSTextInputClient should not chain unhandled commands to super

(cherry picked from commit 91bcca6f39)
2013-07-30 17:28:10 -07:00
Matthias Clasen
3c58485a7f X11: Fix the cut-off for too large windows
We can only handle 2^15-1 pixels, not 2^16-1.
Pointed out by Morten Welinder.

https://bugzilla.gnome.org/show_bug.cgi?id=698758
2013-07-29 20:53:55 -04:00
Ek Kato
8a98feef19 Bug 701332 - Patch for minor glitch in NSTextInput
(cherry picked from commit 43ed68aa33)
2013-07-27 14:28:23 -07:00
Takuro Ashie
4249d6e931 imquartz: Fallback to slave IM context if no NSEvent exists.
When an application translates a key event and drop its native event
before passing to imquartz, it can't recognize the NSEvent. On this
case imquartz doesn't emit any signals such as "commit" signal so
that the application doesn't insert any text. To avoid no response,
at least imquartz should fallback to slave GtkIMContextSimple.

https://bugzilla.gnome.org/show_bug.cgi?id=694273#c27
(cherry picked from commit c064e18894)
2013-07-27 14:28:12 -07:00
Owen W. Taylor
e061305d61 Disable frame sync for GtkPlug
Plug windows weren't redrawing properly because the embedded
window was expecting to get messages for each frame from the
compositor, but the compositor doesn't know about embedded
windows. Simply disable frame sync for GtkPlug's GdkWindow -
extending XEMBED to handle frame sync isn't interesting
at this point.

A new API gdk_x11_window_set_frame_sync_enabled() is added
to allow this to be done.

https://bugzilla.gnome.org/show_bug.cgi?id=701613
2013-07-22 18:38:27 -04:00
Jehan
81f06e1749 gtkdialog - more informative warning when ordering unexisting response_id
(cherry picked from commit 0e4d9b7793)
2013-07-21 21:46:01 +09:00
Carlos Garnacho
c65c217741 quartz: Fix call to missing symbol
This patch can be considered a leftover of commit 12ffae5,
replace the no longer existing function with the GDK function
meant to replace it.

This was noticeable on regular clipboard operations in quartz
Cherry-picked from 7ffcd85.
2013-07-02 11:38:07 -07:00
Emilio Pozuelo Monfort
bd3f7f0619 menushell: don't activate a menu entry when opening a big menu
If a menu is opened and it doesn't fit entirely below or above
the menu bar, gtk+ will place it on top. The button release will
then activate the popup item that happens to appear under the
cursor. Avoid this by ignoring release events if they originated
in the parent menu bar and the duration of the press was too short.

https://bugzilla.gnome.org/show_bug.cgi?id=703069
2013-06-27 20:20:24 +02:00
Federico Mena Quintero
22ca91ffae GtkFileChooserButton: Also emit 'file-set' when changing the selection through the combo box
https://bugzilla.gnome.org/show_bug.cgi?id=696498
2013-06-21 19:17:35 -05:00
Federico Mena Quintero
5aae1eadb7 GtkFileChooserEntry: don't inline-complete if the entry doesn't have the focus
When the file chooser changes directories, it tells the GtkFileChooserEntry to
change its base folder (i.e. the folder from which relative pathnames are resolved).
GtkFileChooserEntry then starts loading a GtkFileSystemModel asynchronously.
In the finished_loading_cb(), however, it would always ask the GtkEntryCompletion
to insert the completion prefix, since that finished_loading_cb() is what is also used
while the user is typing *in the entry*.

But when the entry doesn't have the focus (e.g. the user changed directories by double-clicking
on the file list in the file chooser), there's no reason to insert completions at all.

https://bugzilla.gnome.org/show_bug.cgi?id=672271
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2013-06-21 19:05:35 -05:00
Michael Natterer
f04fe99deb quartz: remove check for keymap changes from update_keymap()
The function is now only called when the keymap has actually
changed. bug #698183.
(cherry picked from commit e5e17cf361)
2013-06-20 17:29:26 +02:00
Michael Natterer
7b08ca94cc quartz: update the keymap only if the input method changed
and not on each keystroke, which for some IMs apparently caused a full
update on each keystroke, not just a check for changes. Patch from
Takuro Ashie, bug #698183.

(cherry picked from commit bbe3554fa9)
2013-06-20 17:10:06 +02:00
Alexander Larsson
4932d44b9e IconTheme: Move changed emission to an idle
By delaying the emission to an idle we avoid a lot of tricky
reentrancy issues. For instance, a normal gtk_icon_theme_choose_icon()
call could in very rare cases (when a user updated an icon theme) emit
a signal which could affect the icon currently being looked up.  This
kind of reentrancy is very hard to test against, especially when it is
so rare, so we're better of avoiding it.

There is no real value to get the change signal directly anyway. All
it can do is affect which icon is rendered the next frame, and we will
handle the queued emission before rendering. Not to mention that icon
theme change detection is polled anyway, so it is already delayed.

https://bugzilla.gnome.org/show_bug.cgi?id=694755
(cherry picked from commit 159cccfe7b)
2013-06-19 11:16:27 +02:00
Alexander Larsson
b4244b734e IconTheme: Clear caches when reloading theme
When we're reloading the theme in ensure_valid_themes (due to noticing
that a theme dir has changed) we need to also clear the icon cache
as it will not be valid for the new theme.

We already do this in do_theme_change(), but ensure_valid_themes()
was missing this.

https://bugzilla.gnome.org/show_bug.cgi?id=702598
(cherry picked from commit 1ee36713fe)
2013-06-19 10:15:15 +02:00
Alexander Larsson
b489d20ac4 IconCache: Keep a ref on the GtkIconData
The icon data in GttkIconInfo->data is currently owned by the
IconThemeDir->icon_data hashtable. However, on e.g. a theme change
blow_themes() destroys the dirs and thus the data, meaning any
outstanding GtkIconInfo points to stale data.

We solve this by adding a refcount to GtkIconData and reffing it
from GtkIconInfo.

https://bugzilla.gnome.org/show_bug.cgi?id=702598
(cherry picked from commit 280d606cd4)
2013-06-19 10:15:13 +02:00
Michael Natterer
044e34b34f quartz: move dialogs to the same window level as utility windows
window_type_hint_to_level(): applied patch from Paul Davis which moves
dialogs to NSFloatingWindowLevel. This is not quite the perfect
solution, but it's a pragmatic fix that makes apps which have both
window types much more usable, and prevents dialog from disappearing
under an application's main window.
(cherry picked from commit 59d49e1566)
2013-06-06 15:49:55 +02:00
Marek Kasik
8dee19fca8 printing: Show correct status of a job
"job-state" is IPP_TAG_ENUM not IPP_TAG_INTEGER.
2013-06-06 11:10:49 +02:00
YunQiang Su
30782e26a9 fix a typo in zh_CN translation 2013-06-06 11:02:29 +08:00
Scott Moreau
f9dd457b25 wayland: Always attach buffer before committing
With recent changes in attach semantics, we always need to attach before
committing. Without this changes to the window contents to not get reflected
in the content of the surface.

Signed-off-by: Rob Bradford <rob@linux.intel.com>

Cherry picked to fix: https://bugzilla.gnome.org/show_bug.cgi?id=701341
2013-05-31 15:26:16 +01:00
Chun-wei Fan
29f453b975 Update Visual Studio 2010 Property Sheets
Remove quotes that aren't really needed
2013-05-31 13:10:39 +08:00