summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* gtkpopovermenu: Conditionally chain up in gtk_popover_menu_add()Ernestas Kulik2018-07-231-2/+1
| | | | | Otherwise the stack gets parented to the wrong widget and the contents are never drawn.
* gtkpopovermenu: Drop call to gtk_widget_show()Ernestas Kulik2018-07-231-1/+0
| | | | The stack is already visible.
* Merge branch 'wip/muktupavels/remove-gtk-css-provider-get-default' into 'master'Benjamin Otte2018-07-202-25/+0
|\ | | | | | | | | gtkcssprovider: remove gtk_css_provider_get_default See merge request GNOME/gtk!256
| * gtkcssprovider: remove gtk_css_provider_get_defaultAlberts Muktupāvels2018-07-192-25/+0
| | | | | | | | | | | | | | This function is unused since cdc6e8272020 commit and does not contain fallback style. https://gitlab.gnome.org/GNOME/gtk/issues/1226
* | Drop unused old iconsMatthias Clasen2018-07-2051-12/+0
| | | | | | | | | | | | We don't need to ship the deprecated old stock-id named icons and the drag cursors - we don't use them from resources anyway.
* | Emoji chooser: Also check for hex boxesMatthias Clasen2018-07-191-2/+4
| | | | | | | | We don't want to see those either.
* | moji chooser: Try harder to avoid fallbackMatthias Clasen2018-07-191-1/+1
| | | | | | | | | | | | | | | | We don't want to see any fallback rendering. The current check was still letting some fallback combinations through. Based on work by Julian Sparber.
* | Quiet a compiler warningMatthias Clasen2018-07-191-1/+1
| | | | | | | | | | We don't need to handle GDK_CONFIGURE here, so make the compiler not warn about it.
* | Emoji chooser: Use icons for sectionsMatthias Clasen2018-07-191-18/+12
|/ | | | | | | This is more reliable than using text-style Emoji which may not be present. Based on work by Julian Sparber.
* placessidebar: Take a GdkDrag in _set_drop_targets_visible()Ernestas Kulik2018-07-173-22/+27
| | | | | | | | Since the function is usually called from GtkWidget::drag-{begin,end} handlers, taking a GdkDrop does not work, especially given that ::drag-action-requested is emitted without checking the type. Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1220
* gesturestylus: Clarify a documentation commentTimm Bäder2018-07-171-3/+3
| | | | Use the proper gtkdoc syntax for signals.
* Remove icon extents APITimm Bäder2018-07-172-61/+0
|
* widget: Remove another ->priv usageTimm Bäder2018-07-171-1/+3
|
* sizerequest: Pull locals into closest scopeTimm Bäder2018-07-171-26/+28
|
* Correctly mark an enum value in a doc commentTimm Bäder2018-07-171-1/+1
|
* sizerequest: Only check reported baselines if requestedTimm Bäder2018-07-171-1/+2
| | | | | If the passed-in store locations for the baselines are NULL anyway, we don't need to check the reported baselines for correctness.
* Remove GTK_CSS_AFFECTS_CLIPTimm Bäder2018-07-172-12/+8
| | | | | Clips don't exist anymore and this flag is unused outside of the style property definitions in gtkcssstylepropertyimpl.c
* window: Don't queue an allocate if the css clip changesTimm Bäder2018-07-171-1/+1
| | | | clips don't exist anymore.
* Handle configure events in gdkMatthias Clasen2018-07-152-11/+4
| | | | | | | | | | | | The previous attempt at removing configure events entirely was causing some dialogs not to show up under Wayland. Presumably due to ordering issues with emitting ::size-change out of the backend. Instead, keep configure events in the event queue, but handle them on the gdk side. This keeps the ordering intact, while still removing configure events from the api. The dialogs show up now.
* Revert "gdk: Drop configure events"Matthias Clasen2018-07-154-6/+12
| | | | This reverts commit a8926c9d873ce968353a2eb1d3930c4f1ac79c94.
* Drop gdk_surface_withdrawMatthias Clasen2018-07-151-1/+1
| | | | | 'withdrawn' is an X11-centric concept, and the function can just as well be replaced by gdk_surface_hide.
* gdk: Drop map eventsMatthias Clasen2018-07-152-17/+0
| | | | | | We are really inconsistent about generating these, and they are not actually used in GTK+. Instead, add a boolean GdkSurface::mapped property.
* gdk: Drop expose eventsMatthias Clasen2018-07-152-23/+14
| | | | | Replace expose events with a GdkSurface::expose signal. This is part of the move to use events only for input.
* gdk: Drop configure eventsMatthias Clasen2018-07-154-11/+6
| | | | | Replace configure events with a GdkSurface::size-changed signal. This is part of the move to use events only for input.
* popover: Drop some dead codeMatthias Clasen2018-07-151-23/+1
| | | | | This will be done differently, using xdg-popup instead of subsurfaces, so no point in keeping this.
* text display: correct a commentMatthias Clasen2018-07-141-1/+1
|
* textview: Only create cairo context in gtktextdisplay.cBenjamin Otte2018-07-145-58/+55
| | | | | Everything else is done using GtkSnapshot now, including renaming the draw_layer vfunc to snapshot_layer.
* window: Update opaque region if background-color changesBenjamin Otte2018-07-131-2/+15
| | | | | | | | | The opaque region is only set when the background color is opaque. So we need to do something about it when the background color changes. However, in the case where a size allocation is going to happen, we already do this update in size_allocate(), so in that case avoid doing it twice.
* textview: Use snapshot on the sidebarsBenjamin Otte2018-07-131-11/+7
|
* widgetpaintable: Add a hack to make recursion not infloopBenjamin Otte2018-07-133-2/+62
| | | | Makes the GUADEC talk not crash that I'm supposed to give in 20 minutes.
* widgetpaintable: Redo implementationBenjamin Otte2018-07-133-91/+93
| | | | | | | | | | | | | Instead of instantly invalidating, we now cache the old render node and do the update in an idle handler. While that gives us a 1 frame delay, it avoids all the tricky things like queueing resizes while resizing or queueing draws while drawing. The only remaining issue (and a *big* one at that) is that a nested widget paintable will now cause the widget to snapshot its previous render node when creating a new one. And that one will snapshot its previous render node, and that one will... And nothing so far breaks this recursion.
* dnd: Rename gtk_drag_begin_with_coordinatesMatthias Clasen2018-07-1210-68/+64
| | | | | Now that the coordiate-less variant is gone, rename this back to the shorter gtk_drag_begin.
* Merge branch 'master' into 'master'Daniel Boles2018-07-097-12/+35
|\ | | | | | | | | | | | | HighContrast: Restore expander size Closes #1046 See merge request GNOME/gtk!167
| * HighContrast: Restore expander sizeSamuel Thibault2018-06-213-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | Expanders used to be 16px high. With the move from the gtk2 rendering to gtk3 rendering they shrunk to 12px, making them hard to see, because it's now the icon which is 16px high and the icon contains transparent borders. This makes the HighContrast theme use 24px icons instead, to restore 16px expanders. This may expander some containers a bit. Closes #1046
| * TreeView: Get expander size from CSS min-width|heightDaniel Boles2018-06-217-8/+31
| | | | | | | | | | | | | | Rather than hard-coding this, get it from CSS. That way, themes will be able to set larger expanders than a fixed 16 px, e.g. for accessibility. See https://gitlab.gnome.org/GNOME/gtk/merge_requests/167
* | aboutdialog: Remove priv pointerTimm Bäder2018-07-082-102/+83
| |
* | layout: Remove priv pointerTimm Bäder2018-07-082-37/+21
| |
* | Revert "snapshot: merge container nodes"Timm Bäder2018-07-081-16/+2
| | | | | | | | This reverts commit 622a150bb4a83afba909c051a4baf12a88868e62.
* | Implement GtkInspectorLayoutOverlayTimm Bäder2018-07-085-97/+270
| | | | | | | | To properly replace the old "show layout borders" option.
* | treeview: Fix column visibility checkTimm Bäder2018-07-081-2/+7
| | | | | | | | | | | | This is still fallout from the bin_window removal. We aren't moving the GdkWindow/GdkSurface anymore so we have to account for the scrolling ourselves.
* | treeview: Move column header widgets when scrollingTimm Bäder2018-07-081-6/+8
| | | | | | | | | | | | | | | | Since those are widgets and widgets need to be size-allocate'd properly, we need to queue an allocate, as well as actually add the hadjustment's value to the column x position. Fixes #1202
* | aspectframe: Remove priv pointerTimm Bäder2018-07-082-20/+13
| |
* | scalebutton: Remove priv pointerTimm Bäder2018-07-082-46/+44
| |
* | searchbar: Ignore key presses when unmappedTimm Bäder2018-07-081-0/+3
| | | | | | | | | | | | The purpose of a searchbar is to start a search on visible widgets when a key is pressed. Starting a search on e.g. a stack page that is not visible at all is not very useful.
* | accellabel: Add newline between consecutive if statementsTimm Bäder2018-07-081-12/+21
| |
* | range: Remove has_origin flagTimm Bäder2018-07-081-10/+4
| | | | | | | | It's equivalent to the highlight_widget being !NULL.
* | dialog: Remove priv pointerTimm Bäder2018-07-082-29/+35
| |
* | dialog: Remove some GtkVBox referencesTimm Bäder2018-07-081-2/+2
| |
* | GtkSeparatorToolItem: Remove draw flagTimm Bäder2018-07-081-25/+17
| | | | | | | | | | We can as well query the current value of the flag using gtk_style_context_has_class.
* | GtkSeparatorToolItem: Remove priv pointerTimm Bäder2018-07-082-13/+12
| |