summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Updated Slovak translationDušan Kazik2016-08-081-247/+252
|
* wayland: Link against librtMatthias Clasen2016-08-071-1/+1
| | | | | | This is required for shm_open. https://bugzilla.gnome.org/show_bug.cgi?id=769603
* headerbar: Fix size allocationMatthias Clasen2016-08-071-2/+0
| | | | | | | | The GtkHeaderBar gadget implementation was subtly broken: it called gtk_widget_set_allocation both in gtk_header_bar_size_allocate (with the actual allocation) and in gtk_header_bar_allocate_contents (with the content allocation of the main gadget). Dropping the second call fixes the render node conversion for GtkHeaderBar.
* Updated Hebrew translationYosef Or Boczko2016-08-071-1039/+1133
|
* Updated Hebrew translationYosef Or Boczko2016-08-071-174/+179
|
* gdkwindow: Fix potential NULL pointer dereferences in event codePhilip Withnall2016-08-071-2/+2
| | | | | | | | | | The event code could potentially dereference pointer_info if the invariant that ENTER_NOTIFY and LEAVE_NOTIFY events are only emitted on devices which have pointers is violated elsewhere. Found with scan-build. https://bugzilla.gnome.org/show_bug.cgi?id=712760
* gtkicontheme: Don’t emit warning about fallback theme when in unit testsPhilip Withnall2016-08-061-9/+22
| | | | | | | | | | | In order to eliminate g_test_expect_message() (which doesn’t work with G_LOG_USE_STRUCTURED), make the warning about the fallback theme not existing be conditional on the icon theme search path containing a system path. Any application code which modifies the search path does so through appends and prepends, so this should not affect whether the warning is emitted in production. https://bugzilla.gnome.org/show_bug.cgi?id=769485
* tests: Avoid g_test_expect_messageMatthias Clasen2016-08-061-2/+11
| | | | Instead of using g_test_expect_message, just ignore the warning.
* GtkMenuButton: use :toggled instead of :clickedColomban Wendling2016-08-041-20/+7
| | | | | | | | | :toggled is triggered on :clicked, so using :toggled lead to the menu to be popped up at the same time, while allowing to use the toggle state and avoiding any need to a hack to prevent recursion, which somehow wasn't enough for double emission of GtkMenuToolButton:show-popup. https://bugzilla.gnome.org/show_bug.cgi?id=769287
* Updated Polish translationPiotr Drąg2016-08-042-786/+782
|
* csslookup: Remove useless castTimm Bäder2016-08-041-1/+1
| | | | | The style passed to _gtk_css_lookup_resolve is already a GtkCssStaticStyle.
* Updated German translationBernd Homuth2016-08-041-401/+400
| | | | (cherry picked from commit 070c4f74868c31cc9316bbad38e2ad42adc43443)
* W32: Prefer the deadkey combinations that the OS usesРуслан Ижбулатов2016-08-043-14/+443
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pick the W32 API for possible deadkey+<something> combinations and prefer these to other sources of deadkey combos. Specifically, if W32 API supports at least one combo for a particular deadkey, only use that data and do not attempt to do other, unsupported combinations, even if they make sense otherwise. This is needed to, for example, correctly support US-International keyboard layout, which produces a combined character for <' + a> combo, but not for <' + s>, for example. This is achieved by stashing all the deadkeys that we find in an array, then doing extra loop through all virtual key codes and trying to combine them with each of these deadkeys. Any combinations that produce a single character are cached for later use. In GTK Simple IM context, call a new GDK W32 function to do a lookup on that cached combination table early on, among the "special cases" (which are now partially obsolete). A limitation of this code is that combinations with more than one deadkey are not supported, except for combinations that consist entirely of 2 known deadkeys. The upshot is that lookups should be relatively fast, as deadkey array stays small and the combination tree stays shallow. Note that the use of ToUnicodeEx() seems suboptimal, as it should be possible to just load a keyboard library (KBD*.DLL) manually and obtain and use its key table directly. However, that is much more complicated and would result in a significant rewrite of gdkkeys-win32. The code from this commit, though hacky, is a direct addition to existing code and should cover vast majority of the use-cases. https://bugzilla.gnome.org/show_bug.cgi?id=569581
* GDK W32: Cache multiple keyboard layouts simultaneouslyРуслан Ижбулатов2016-08-045-337/+679
| | | | | | | | | | | | | | | | | | | | | This changes the group/level semantic. Previously W32 backend used "group 0/1" to denote "AltGr OFF/ON" and "level 0/1" to denote "Shift is OFF/ON". Now "group" means "keyboard layout" and there can be up to 255 groups, while AltGr and Shift are combined into a single level enum that takes values between 0 and 4. Unlike X, W32 doesn't do effective group overriding, meaning that it will never tell the caller that a different group was actually used (even for universal keys, such as Enter), because key symbol table is completely fabricated and there's no point in trying to save a few of kilobytes of RAM by not duplicating universal key records for all groups. Also contains many whitespace changes (tab elimination, fixed indentation) and cleanup (axed a few global variables, these are now accessed via the default keymap). https://bugzilla.gnome.org/show_bug.cgi?id=768722
* shortcutlabel: Make parameter names matchTimm Bäder2016-08-041-1/+1
|
* widget: remove some unneeded function prototypesTimm Bäder2016-08-041-16/+0
|
* filechooserwidget: Remove unused enumTimm Bäder2016-08-041-5/+0
|
* label: Destroy the popup menu on unmapTimm Bäder2016-08-041-1/+9
|
* Updated Spanish translationDaniel Mustieles2016-08-031-34/+37
|
* Modify git.mk to handle our split NLS directoriesEmmanuele Bassi2016-08-032-25/+25
| | | | | | | | | | | GTK+ has two directories for translations: the default 'po' and the additional 'po-properties' for the GObject properties translation domain. Since the content of the translations directories are filled by autoreconf and gettext, and are duplicated between the two gettext domains we use, we should handle this ad hoc inside git.mk, instead of trying to catch up by adding po-properties files in GITIGNOREFILES.
* Add ignore file for macro dirEmmanuele Bassi2016-08-031-0/+3
| | | | | | | | | | The contents of the macro directory are too complicated for git.mk to handle: the contents are filled by autotools and may change between systems or autotools releases; and we additionally ship our own m4 macros. To avoid unnecessary noise on the `git status` output we should simply add an ignore file specifically for the macro directory.
* Skip GtkShortcutLabel::accelerator in notify testMatthias Clasen2016-08-021-0/+4
| | | | | This property is not freely settable, since the string gets parsed.
* menu: Fix up new propertiesMatthias Clasen2016-08-021-8/+33
| | | | | | The new positioning-related properties had some quality of implementation issues, such as incorrect initial values and excessive change notification. This broke the notify test.
* Make icontheme test work with structured loggingMatthias Clasen2016-08-021-9/+26
| | | | | Since we've opted in to G_LOG_USE_STRUCTURED, this test now needs to do its thing using a log writer function.
* Skip GdkDrawingContext in default value testsMatthias Clasen2016-08-021-0/+1
| | | | GdkDrawingContext objects can't be freely constructed.
* Require a new version of GLibEmmanuele Bassi2016-08-021-1/+1
| | | | | | | We need GLib 2.49.4 because of the new API requirements introduced by commit 936c1649. https://bugzilla.gnome.org/show_bug.cgi?id=769451
* Updated Spanish translationDaniel Mustieles2016-08-021-55/+53
|
* Updated Spanish translationDaniel Mustieles2016-08-021-70/+66
|
* Update the docs for gtk_window_get_position()Emmanuele Bassi2016-08-021-22/+20
| | | | | Drop mentions of GnomeClient, and add mentions of different windowing systems instead of just assuming that we're using X11.
* Add a release not about GtkTable expand flagsMatthias Clasen2016-08-011-0/+6
|
* gtkbox: remove unnecessary queue_compute_expand()Christoph Reiter2016-08-011-9/+3
| | | | | | | | The expand child property does not have any effect on the expand state of the GtkBox, so queuing a compute_expand when changing it is not needed. https://bugzilla.gnome.org/show_bug.cgi?id=769162
* gtktable: don't try to propagate expand related child props in compute_expand()Christoph Reiter2016-08-011-61/+2
| | | | | | | | | | | | | | | | | | | | | It tried to set the expand state if either xexpand/yexpand where true. Due to a missing queue_compute_expand when adding a child it actually only computed the expand state in case a child queued after being added or in case a child had the expand property set (see optimization in gtk_widget_set_parent) In my case this broke layouts as a child of GtkCombBox started setting an exand flag with 3.20 which queued a compute_expand, which in turn propagated an expand child props set for a cell in the same table up and overrode the expand child prop of a parent GtkBox. This removes the custom compute_expand implementation to match the behaviour of GtkBox (don't propagate child prop expand flags but let child expand flags override the child props) and not get random expand behaviour depending on whether and when child widgets set their expand state. https://bugzilla.gnome.org/show_bug.cgi?id=769162
* Updated Lithuanian translationAurimas Černius2016-07-312-951/+1038
|
* demos: Fix build failureBastien Nocera2016-07-291-0/+3
| | | | | | | | | gtk+/demos/gtk-demo/css_blendmodes.c: In function ‘update_css_for_blend_mode’: gtk+/demos/gtk-demo/css_blendmodes.c:49:26: error: format not a string literal, argument types not checked [-Werror=format-nonliteral] blend_mode); ^~~~~~~~~~ https://bugzilla.gnome.org/show_bug.cgi?id=769236
* docs: trivial build fixSébastien Wilmet2016-07-281-1/+1
| | | | | | | | | The error was: gtk3-scan.c:193: undefined reference to `gtk_shortcuts_label_get_type' collect2: error: ld returned 1 exit status It's since commit 7543cd8ce419a4d660f0ff7614f0c6e1cac81804, which made the GtkShortcutLabel class public.
* Port GtkPrintOperationPortal to gtk_window_export_handleMatthias Clasen2016-07-281-26/+49
|
* Port gtk_show_uri_on_window to gtk_window_export_handleMatthias Clasen2016-07-281-22/+35
| | | | | | As part of this, make it use the new g_app_info_launch_default_for_uri_async, since we need a way to unexport the window handle afterwards.
* Port GtkFileChooserNativePortal to gtk_window_export_handleMatthias Clasen2016-07-281-58/+91
|
* Put window exporting behind a display protocol agnostic APIMatthias Clasen2016-07-282-0/+41
| | | | | | | | | Introduce a private API meant for abstracting how to get a handle of a window that can be shared with other processes. The API is async, since some implementations will require that. Currently, only X11 is supported, which doesn't. Based on a patch by Jonas Adahl.
* GDK W32: Support UTF-16 surrogate pairs passed via VK_PACKETРуслан Ижбулатов2016-07-282-11/+72
| | | | | | | This is, essentially, a piece of g_utf16_to_ucs4() built into GDK W32 keyboard message processing. https://bugzilla.gnome.org/show_bug.cgi?id=769126
* css: Fix case where we didn't convert pt => pxBenjamin Otte2016-07-281-2/+6
| | | | | | | Fixes gtk_widget_override_font() not behaving properly since commit df08fc91bdc1d2e4c866122304fabe4dd298a7de. https://bugzilla.gnome.org/show_bug.cgi?id=768902
* css: Rename functionsBenjamin Otte2016-07-281-7/+7
| | | | | I don't want to use a generic function for font sizes as font sizes are special. Plus, the function is only used in one place.
* Properly declare the font CSS propertyEmilio Pozuelo Monfort2016-07-281-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=769004
* Don't use one-stop gradientsEmilio Pozuelo Monfort2016-07-281-2/+2
| | | | | | | They are deprecated, which causes a warning that makes the test fail. https://bugzilla.gnome.org/show_bug.cgi?id=769004
* Fix tiny typo.Murray Cumming2016-07-281-1/+1
|
* Adwaita: use a transition to animate checks and radiosLapo Calamandrei2016-07-273-80/+51
| | | | see https://bugzilla.gnome.org/show_bug.cgi?id=762260
* shortcut-label: add 'disabled-text' propertyGeorges Basile Stavracas Neto2016-07-272-2/+83
| | | | | | | | | | | When there's no useful shortcut accelerator set, GtkShortcutLabel doesn't show any useful information. To work around that, add a new property to set the text to be displayed when there's no accelerator available. https://bugzilla.gnome.org/show_bug.cgi?id=769205
* shortcut-label: make it publicGeorges Basile Stavracas Neto2016-07-276-4/+58
| | | | | | | | | | | | | | | | GtkShortcutLabel is a widget that displays a single shortcut accelerator or gesture in the user interface, and is currently used by the shortcuts window. This widget, however, has public value as other applications also may want to expose their own shortcuts. For instance, it'll be useful for the Keyboard panel on Control Center and the new shortcut editor in Pitivi, among others. This patch exposes GtkShortcutLabel as a public widget, and adds the necessary documentation. https://bugzilla.gnome.org/show_bug.cgi?id=769205
* GtkScrolledWindow: reset scroll history if it contained no real historyCarlos Garnacho2016-07-271-1/+4
| | | | | Scroll history must refer to a timespan for the values to be valid, otherwise we return FALSE, in this case the stored event(s) should be discarded anyway.
* GtkScrolledWindow: Always uninstall scroll cursor when starting decelerationCarlos Garnacho2016-07-271-4/+4
| | | | | | | | | | | It could be the case that the last scroll event is received long after any previous scroll event, in this case the last scroll event discards all "old" scroll events, and scroll_history_finish() returns FALSE because there's no time/offset deltas in the scroll history. This is desired so we don't trigger the deceleration effect if there was no effective velocity, we still must reset the installed scroll cursor, so take it out of this if() condition.