summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* demos: Add "Paint" demowip/carlosg/stylus-gestureCarlos Garnacho2018-02-023-0/+275
|
* gtk: Add GtkGestureStylusCarlos Garnacho2018-02-025-0/+447
| | | | | | This is a GtkGesture done to deal with stylus events from drawing tablets. Those have a special number of characteristics that extend a regular pointer, so it makes sense to wrap that.
* Replace boilerplate in GtkIconEmmanuele Bassi2018-02-012-22/+10
| | | | | Be a good GObject citizen and use G_DECLARE_FINAL_TYPE instead of writing the usual GObject boilerplate.
* iconview: Fix a problem with the previous changeMatthias Clasen2018-01-311-2/+2
| | | | | | | After commit ffef28a7e8d5ffef7de6a3baccb30b0021b6b0ff, gtk-icon-browser was spewing critical warnings when changing sections. Avoid that by respecting the return value of gtk_tree_model_get_iter.
* dnd: Remove unused member variableBenjamin Otte2018-01-311-2/+0
|
* dnd: Move GdkDragProtocol to X11Benjamin Otte2018-01-312-64/+34
| | | | It's not needed in the generic implementation, so don't have it there.
* dnd: Remove 2 vfuncs that aren't neededBenjamin Otte2018-01-316-213/+7
| | | | | They're only used inside the X11 backend, and the backend can just call its own function.
* icon browser: Remove usage of stock-size propertyTimm Bäder2018-01-301-1/+0
| | | | Does not exist anymore.
* Revert "menu: Simplify popup_at_rect"Timm Bäder2018-01-301-1/+5
| | | | This reverts commit a29306cb1e739afaa4a7b31d48c4bec328cfef9e.
* range: Always queue an allocate if the adjustment changedTimm Bäder2018-01-301-3/+1
| | | | | The slider gets its new size in size-allocate, so we have to do this even if the range has no origin.
* wayland: Add support for BTN_STYLUS3Jason Gerecke2018-01-301-0/+6
| | | | | | | | | BTN_STYLUS3 is defined by the Linux 4.15 kernel and is sent when the third button on a stylus is pressed. At the moment, only Wacom's "Pro Pen 3D" has three stylus buttons. Pressing this button triggers a button 8 event to be sent under X11, so we use the same mapping here. https://bugzilla.gnome.org/show_bug.cgi?id=790033
* Add AGPL3-only licence to GtkAboutDialogNuclear Sunshine2018-01-282-3/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=792793
* gl: Add test case for clipped cross fade nodesTimm Bäder2018-01-273-1/+2
|
* gl renderer: Reset clip when drawing offscreenTimm Bäder2018-01-271-1/+6
| | | | | Just like we reset the scissor test and the viewport, we also can't use the current clip anymore in this case.
* GskRoundedRect: Fix GSK_ROUNDED_RECT_INIT macroTimm Bäder2018-01-271-1/+8
| | | | | GskRoundedRect does not have a .rect member, it's 'bounds'. Also, properly initialize all fields, i.e. all the corners.
* gl renderer: Fix hidpi cairo node renderingTimm Bäder2018-01-271-2/+5
| | | | | | We can't just unconditionally create a larger texture here, since the incoming cairo surface might have a device scale that doesn't fit our scale_factor. Instead, look up the surface device scale and use that.
* gl renderer: Make width/height relation more obviousTimm Bäder2018-01-271-2/+4
| | | | | In add_offscreen_ops, we use the max_x/min_x values for the texture and viewport width, and the max_y/min_y for the texture and viewport height.
* inspector: Actually call the pick() vfunc when pickingTimm Bäder2018-01-261-1/+1
| | | | | Otherwise, overridden pick vfuncs don't work and we e.g. pick widgets scrolled away in a viewport.
* entry: Remove unused struct membersTimm Bäder2018-01-261-2/+0
|
* menu: Simplify popup_at_rectTimm Bäder2018-01-261-5/+1
| | | | | No need to keep a separate current_event variable around, we don't use it anyway.
* gdk: Stop referring to ::key-press/release-eventMatthias Clasen2018-01-241-5/+2
| | | | | These signals are going away, don't mention them in the docs.
* entry completion: Stop using key-press/release-eventMatthias Clasen2018-01-241-25/+12
| | | | We can use the existing ::event handler for this.
* gsk: Add test case for last commitTimm Bäder2018-01-233-0/+1
|
* gl renderer: Fix outset shadow outline transformTimm Bäder2018-01-231-12/+5
| | | | This fixes hidpi blurred outset shadows
* Enforce UTF-8 encoding when opening C filesEmmanuele Bassi2018-01-232-2/+2
| | | | | | | | We have a couple of Python 3.x scripts that parse C files, and since C does not have any encoding, we need to force one ourselves, to avoid the case when we're running the build in a non-UTF-8 locale. https://bugzilla.gnome.org/show_bug.cgi?id=792497
* Widget: Don’t call reset() on NULL EventControllerDaniel Boles2018-01-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | GtkGesture is a GtkEventController. gtk_event_controller_dispose() calls _gtk_widget_remove_controller(). That NULLs the pointer-to-Controller in our EventControllerData but does not delete said ECData from our GList. Subsequently, if that same Widget gets unparent()ed, that method calls unset_state_flags(), which leads to doing reset_controllers() if we are insensitive. Now, unlike most most other loops over the GList of ECData, reset_controllers() does not skip nodes whose pointer-to-Controller is NULL. So, we call gtk_event_controller_reset(NULL) and get a CRITICAL. This surfaced in a gtkmm program. The Gesture is destroyed before the Widget. The Widget then gets dispose()d, which calls unparent()… boom. I didn’t find an MCVE yet but would hope this logic is correct anyway: The simplest fix is to make the loop in gtk_widget_reset_controllers() skip GList nodes with a NULL Controller pointer, like most other such loops, so we avoid passing the NULL to gtk_event_controller_reset(). In other, live cases, _gtk_widget_run_controllers() loops over the GList and removes/frees nodes having NULL Controllers, so that should suffice. But this clearly was not getting a chance to happen in the failing case. https://bugzilla.gnome.org/show_bug.cgi?id=792624
* Update Esperanto translationGNOME Translation Robot2018-01-221-1517/+1378
| | | | (cherry picked from commit 814c55d473c6a7ab9f930421aad5612a351ba68d)
* GtkGestureMultiPress: check event state before emiting released signalJuan Pablo Ugarte2018-01-221-1/+3
| | | | | Fix bug 771986 "Inconsistent 'row-activated' signal emission before \ drag'n'drop, 'activate-on-single-click'=TRUE, 'reorderable'=TRUE"
* widget: Only initialize bounds rect if necessaryTimm Bäder2018-01-211-9/+16
| | | | | We only use the graphene_rect_t version of the offset_clip for the fallback cairo nodes.
* vulkan: Fix release buildsTimm Bäder2018-01-211-1/+4
|
* combobox: Remove some unneeded includesTimm Bäder2018-01-211-4/+0
|
* Set GDK_WINDOW_STATE_TILED if any edge is tiledSimon McVittie2018-01-202-7/+21
| | | | | | | | | | | This state flag is used in several places in GTK+, for example to ignore RESIZE_INC hints if tiled. Setting it is also necessary for backwards compatibility with applications that changed their behaviour when tiled, such as GNOME Terminal and its MATE fork. Signed-off-by: Simon McVittie <smcv@debian.org> https://bugzilla.gnome.org/show_bug.cgi?id=789357
* display-x11: Unset tiled state if _GTK_EDGE_CONSTRAINTS is supportedGeorges Basile Stavracas Neto2018-01-201-4/+2
| | | | | | | | | | | | | Commit c415bef5de introduced support for the new _GTK_EDGE_CONSTRAINTS atom. If the compositor supports that atom, however, we were always setting the tiled state, even if no actual tiling information is available, where the correct action is to completely remove any traces of the tiled state. Fix that by correctly removing the tiled state when compositor supports _GTK_EDGE_CONSTRAINTS Xatom. https://bugzilla.gnome.org/show_bug.cgi?id=788516
* entrycompletion: Realize toplevel before attempting a grabTimm Bäder2018-01-191-0/+1
| | | | | | Otherwise, gtk_widget_get_window returns NULL and we can't successfully perform a grab via the later gdk_set_grab call. This fixes the entry completion in the file chooser not working.
* tests: Remove some unneeded gtk_widget_show callsMatthias Clasen2018-01-195-36/+1
| | | | Widgets are visible by default now.
* iconview: Fix updates with filter modelsMatthias Clasen2018-01-191-0/+6
| | | | | | | Filter models rely on views taking a ref on every node they care about. GtkIconView was not doing that. Amazingly, this has never shown up in a bug so far, until I spotted the fallout in gnome-font-viewer.
* Add a test for ::row-changed vs node refsMatthias Clasen2018-01-191-0/+71
| | | | | | | | Test that filter models propagate ::row-changed if there is an external reference on the node, and not otherwise. This is showing up in buggy icon view behaviour, where the icon view is not redrawing if the content changes in a model that is below a filter model.
* gtkwindow: Disconnect GdkSeat::device-removed callback on finalizeCarlos Garnacho2018-01-191-0/+4
| | | | Otherwise dangling callbacks may lead to crashes.
* gl renderer: Fix shadow node child offsetTimm Bäder2018-01-191-5/+6
| | | | | | We shouldn't apply the shadow offset when drawing the child offscreen, instead apply it afterwards when we draw it to the current render target.
* testsuite: Add another gl renderer test caseTimm Bäder2018-01-193-1/+2
|
* linkbutton: Only set widget cursor onceTimm Bäder2018-01-191-14/+1
|
* inspector: Allow picking insensitive widgetsTimm Bäder2018-01-193-6/+53
| | | | | The default gtk_widget_contains/gtk_widget_pick don't consider insensitive widgets.
* csswidgetnode: Avoid some unnecessary workTimm Bäder2018-01-191-0/+3
| | | | The later code would just ref both styles and not do anything else.
* widget-factory: Fix some layout issuesTimm Bäder2018-01-191-1/+2
| | | | | | We have to explicitly set some of these to their default values so expand-set is TRUE and the boxes stop propagating their expansion state up the hierarchy.
* textview: Remove some stray debugging outputTimm Bäder2018-01-191-3/+0
| | | | Leftover from 7046463b880c79b227594a2b35a6c625119d286e
* Simplify all ui files againMatthias Clasen2018-01-1846-2061/+942
| | | | Now even simpler!
* builder-tool: Try harder to find typesMatthias Clasen2018-01-181-2/+7
| | | | | If g_type_from_name fails, try gtk_builder_get_type_from_name before giving up. This fixes cases like GtkPrinterOptionWidget.
* window: Ignore gtk_window_close calls from close-request handlersTimm Bäder2018-01-181-0/+12
|
* widget: Always assign values to out parameter in translate_coordinatesTimm Bäder2018-01-181-1/+7
| | | | | safe guard against people using the returned coordinate values without checking the return value of gtk_widget_translate_coordinates.
* widget: Initialize a local variableTimm Bäder2018-01-181-1/+1
| | | | | We will later pass this variable on to some other functions, so be safe against them using the value.