summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* Add gtk_native_dialog_destroy()Alexander Larsson2015-11-113-1/+31
| | | | | | | Its very easy to get extra references to the NativeDialog so that when you release your last reference any visible dialog is not hidden. We handle this by adding a destroy method similar to how you destroy regular toplevels.
* GtkNativeDialog: Fix modal handling in gtk_native_dialog_run()Alexander Larsson2015-11-111-1/+1
|
* tooltipwindow: Use a builder UI fileEmmanuele Bassi2015-11-113-20/+49
| | | | | | It's not a hugely complicated file, but it's easier to deal with some of the details of tooltip windows styling if we have a UI file to edit, instead of source code.
* Add autocleanups for GtkShortcutsWindowEmmanuele Bassi2015-11-111-0/+1
|
* Remove introspection scanner guards around autocleanupsEmmanuele Bassi2015-11-1115-30/+0
| | | | They are not needed.
* gtklevelbar: Fix typoTimm Bäder2015-11-111-1/+1
|
* HighContrast: Update levelbar stylingMatthias Clasen2015-11-112-49/+51
| | | | Adapt to the changes in the previous release.
* Adwaita: Update levelbar renderingMatthias Clasen2015-11-113-78/+81
| | | | Adapt to the changes in the previous commit.
* levelbar: Port to use CSS nodesMatthias Clasen2015-11-111-92/+165
| | | | | | Use element names levelbar, trough, block, and some style classes on the block nodes: .discrete, .continuous, .empty, .level-low, etc.
* text util: Avoid creating transient nodesMatthias Clasen2015-11-101-5/+0
| | | | | We don't need to add .view - its already added, and shouldn't really be needed in the first place.
* HighContrast: Update textview selection stylingMatthias Clasen2015-11-102-16/+10
| | | | Use the selection element name.
* Adwaita: Update textview selection stylingMatthias Clasen2015-11-103-35/+20
| | | | Use the selection name.
* text view: Improve text renderingMatthias Clasen2015-11-102-20/+29
| | | | | | | Use the text CSS node for rendering text, and the selection node for rendering selected text, avoid gtk_style_context_save, update states of all CSS nodes, and use the proper states when querying style properties.
* textview: Use a CSS node for selection renderingMatthias Clasen2015-11-102-12/+37
| | | | | | | Use a CSS node with name selection, like we do for entries and labels. Unlike those widgets, we currently don't user gtk_render_background, but just use the background color. That will require more effort.
* cell view: Add an element nameMatthias Clasen2015-11-101-0/+6
| | | | The element name is...cellview.
* HighContrast: Update label selection stylingMatthias Clasen2015-11-102-6/+6
| | | | Adapt to changes in the previous commit.
* Adwaita: Update label selection stylingMatthias Clasen2015-11-103-11/+11
| | | | Adapt to the changes in the previous commit.
* label: Use a CSS node for selection renderingMatthias Clasen2015-11-101-13/+28
| | | | | This adds new possibilities for themes to render the selection in fancy ways.
* entry: Simplify selection renderingMatthias Clasen2015-11-101-9/+7
| | | | | | | | Calling gtk_render_background for each rectangle in the region leads to suboptimal and sometimes weird results. Getting this right requires more work in Pango first. Go back to just rendering a single background, and clip it to the selection region. This matches what GtkLabel does.
* inspector: Don't grow horizontallyMatthias Clasen2015-11-101-0/+2
| | | | | Labels in the object tree are application data. Ellipsize them to avoid growing extremely wide if the data is bogus.
* inspector: fix a typoMatthias Clasen2015-11-101-1/+1
|
* HighContrast: Update entry selection stylingMatthias Clasen2015-11-102-6/+14
| | | | Adapt to changes in the previous commit.
* Adwaita: Update entry selection renderingMatthias Clasen2015-11-103-10/+10
| | | | Adapt to the changes in the previous commit.
* entry: Use a CSS node for selection renderingMatthias Clasen2015-11-101-23/+55
| | | | | This adds new possibilities for themes to render the selection in fancy ways.
* Adwaita: Update tooltip styling moreMatthias Clasen2015-11-103-8/+8
| | | | | Now that tooltips are csd again, the CSS wasn't quite working anymore.
* gtkwindow: css offset for toplevel onlyOlivier Fourdan2015-11-101-7/+11
| | | | | | | | | | | | | | | | | At the time gtk_window_move() or gtk_window_resize() get called, there is no way to predict if a popup window will actually draw its shadow, so applying an offset in this case may end up with a wrong size or positioning for such windows. Changing the logic in gtk_window_should_use_csd() as previously done to address that issue will cause some other breakage as popup windows may not draw a shadow but still need CSD. So best is to actually apply client side decorations offset for regular, top level windows only. This is actually a lot simpler and safer and less likely to cause additional breakage. Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=756618
* Adwaita: update tooltip stylingMatthias Clasen2015-11-103-26/+20
| | | | | | Adapt to the changes in the previous commit. Note that tooltip appearance is currently affected by tooltips having lost their csd nature, due to a regression.
* Move GtkAccelMap autocleanup to the class headerEmmanuele Bassi2015-11-102-1/+3
|
* Recursively move autocleanups to their header filesEmmanuele Bassi2015-11-105-12/+15
| | | | Start from GtkAccelLabel and walk the tree downwards.
* Move GtkAboutDialog autocleanup to the class headerEmmanuele Bassi2015-11-102-1/+4
|
* Move GtkDialog autocleanup to the class headerEmmanuele Bassi2015-11-102-3/+4
|
* Start recursively moving autocleanups macros to their headersEmmanuele Bassi2015-11-107-9/+24
| | | | | | | | | | | | | | | | | | * Cover letter Having a single header file for all autocleanups definitions was a reasonable stop-gap measure, but now GTK+ is starting to use G_DECLARE_* macros. This means that every class using a G_DECLARE_* macro will need to include "gtk.h" to avoid compiler warnings, which is not acceptable. By moving the G_DEFINE_AUTO* use to the header that defines the type we allow using the G_DECLARE_* macros without sacrificing the ability to include only the needed files when deriving from a class. * Commit This commit changes all includes relative to GtkWindow to define their own autocleanup macros.
* Only include the necessary headers in GtkPlacesViewRowEmmanuele Bassi2015-11-101-2/+15
| | | | | When compiling inside GTK we also use the GTK_COMPILATION guard, as the GtkPlacesView and GtkPlacesViewRow widgets are shared with Nautilus.
* Move GtkListBox g_autoptr macros to the class headerEmmanuele Bassi2015-11-102-2/+5
| | | | | This allows GtkPlacesViewRow to use G_DECLARE_FINAL_TYPE without having to include gtk.h.
* Remove an unused variable declarationEmmanuele Bassi2015-11-101-1/+0
| | | | And the compiler warning that comes with it.
* Move GtkWindow g_autoptr macros in the class headerEmmanuele Bassi2015-11-102-2/+5
| | | | | Otherwise we won't be able to use G_DECLARE_* macros internally to GTK without generating warnings, or without including gtk.h itself.
* Fix an oversightMatthias Clasen2015-11-101-1/+3
| | | | | We must set the construct-only "type" to GTK_WINDOW_POPUP, otherwise this ends upo being a regular toplevel.
* Use CSS node name for GtkTooltipWindowEmmanuele Bassi2015-11-101-6/+6
| | | | Instead of a style class.
* Add GtkTooltipWindow private sub-classEmmanuele Bassi2015-11-104-128/+312
| | | | | GtkTooltip does a lot of set up on the GtkWindow it uses internally. We should move that code to a separate class to keep it contained.
* print dialog: Avoid gtk_style_context_saveMatthias Clasen2015-11-101-18/+6
| | | | | | There was one more call to gtk_style_context_save here that I overlooked. We can get rid of it by just setting the element name on the drawing area.
* flowbox: Add a diagram to CSS documentationMatthias Clasen2015-11-101-0/+10
|
* iconview: Add a diagram to CSS documentationMatthias Clasen2015-11-101-0/+4
|
* treeview: Add a diagram to CSS documentationMatthias Clasen2015-11-101-0/+11
|
* HighContrast: Update treeview rubberband stylingMatthias Clasen2015-11-102-2/+2
| | | | Adapt to the changes in the previous commit.
* Adwaita: Update treeview rubberband stylingMatthias Clasen2015-11-103-3/+3
| | | | Adapt to the changes in the previous commit.
* treeview: Use a CSS node for rubberband drawingMatthias Clasen2015-11-101-2/+14
| | | | | Use a CSS node with name rubberband to draw the rubberband selection.
* TextView: Use saner coordinate space in draw_layer.Alexander Larsson2015-11-102-4/+21
| | | | | | | | | | | | | | | | | | When I added the draw_layer vfunc it accidentally got passed a cairo_t that was configured with to draw in the viewport coordinate space (rather than the buffer coordinate space). This makes things unnecessary complex, because you have to convert between the two. The pixel cache is shared between the text and the layers, so there is no way to use draw_layer to get a stationary overlay effect. Thus it makes much more sense for the draw_layer vfunc to draw in the buffer space. Just changing this would break ABI for existing code, so this is fixed by adding new layer types and deprecating the old ones. Also, we use the new layer types to fix gtk3-widget-factory. https://bugzilla.gnome.org/show_bug.cgi?id=757856
* Forgotten fileMatthias Clasen2015-11-101-0/+2
| | | | This change belongs to the iconview rubberband changes.
* HighContrast: Update flowbox rubberband stylingMatthias Clasen2015-11-102-0/+5
| | | | Adapt to the changes in the previous commit.
* Adwaita: Update flowbox rubberband stylingMatthias Clasen2015-11-103-0/+6
| | | | Adapt to the changes in the previous commit.