summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* Remove an unused internal exportMatthias Clasen2014-10-092-3/+2
| | | | | _gtk_scrolled_window_get_scrollbar_spacing is only used in gtkscrolledwindow.c, so keep it there.
* ColorChooser: Fix an off-by-one errorMatthias Clasen2014-10-091-2/+2
| | | | | We were not filling the last free space in the custom color row.
* Adwaita: color button changesLapo Calamandrei2014-10-083-11/+16
| | | | | | | Dimmed inner colorswatch shadow to make brighter colors looks nice, increased the padding to make button states more evident, 0 border radius to match the padding change and no colorswatch shadows when the button is insensitive.
* Distribute gtk/resources/ui/*.ui.hLars Uebernickel2014-10-081-0/+1
| | | | POTFILES references them.
* Adwaita: colorchooser style rewriteLapo Calamandrei2014-10-083-156/+144
| | | | | To reflect latest Benjamin changes. As a bonus the colorchooser looks better to me, same for the scss code.
* Adwaita: don't round scrolled window frame cornersLapo Calamandrei2014-10-083-5/+0
| | | | See https://bugzilla.gnome.org/show_bug.cgi?id=737985
* colorswatch: Use a better name for the overlayBenjamin Otte2014-10-084-10/+12
| | | | Name it .overlay and not .image
* colorswatch: Draw the image overlay over the whole widgetBenjamin Otte2014-10-081-9/+9
|
* themingbackground: Use fill() instead of clip() + paint()Benjamin Otte2014-10-081-6/+1
| | | | It's simpler code and I believe it's faster, too.
* themingbackground: Add a quick exit for default caseBenjamin Otte2014-10-082-5/+14
| | | | | In the case where the background is completely transparent, exit the rendering functions before doing any expensive calculations.
* themingbackground: Call shadow function directlyBenjamin Otte2014-10-081-13/+12
| | | | ... instead of having a custom function for it.
* themingbackground: Don't store (almost) unused variablesBenjamin Otte2014-10-081-15/+8
| | | | Instead, parse them directly to the one function that uses them.
* themingbackground: Don't store bg_color in structBenjamin Otte2014-10-081-4/+5
| | | | Instead, keep it as a separate variable.
* themingbackground: Use an array instead of 3 separate membersBenjamin Otte2014-10-081-34/+15
| | | | Simplifies code
* render: Make rendering the background a single functionBenjamin Otte2014-10-083-82/+54
|
* render: Overhaul gtk_render_handle()Benjamin Otte2014-10-081-17/+9
| | | | | | | | | | The code did weird things with drawing backgrounds sometimes but not really. Now it does this: (1) render a background (2) render a frame (3) render an icon - if no icon exists, draw the generic handle icon
* colorswatch: Render background properlyBenjamin Otte2014-10-083-13/+60
| | | | | | | | We want to render a background *and* the current color (if there is one). This also adds a custom function gtk_render_add_content_path() which adds the path of the current content area to a cairo_t.
* colorswatch: Remove an unused variableBenjamin Otte2014-10-081-5/+0
|
* colorswatch: Render focus with gtk_render_focus()Benjamin Otte2014-10-084-28/+31
|
* colorswatch: Simplify drawing codeBenjamin Otte2014-10-084-73/+73
| | | | | | | | This adds a CSS box (complete with padding and border) for the icon. The box is even drawn when no icon is present. Use the ".image" as the style class here instead of -active-color-badge. Use this box to draw the circle around the selection icon in Adwaita.
* printing: Properly initialize auth_info in gtkprintbackend.cDariusz Gadomski2014-10-071-1/+1
| | | | | | | | auth_info should be a NULL-terminated array as it is used in e.g. g_strdupv invocations iterating over its elements until a NULL element is encountered. https://bugzilla.gnome.org/show_bug.cgi?id=737777
* Make touch-selection popovers font-inertMatthias Clasen2014-10-071-0/+1
| | | | | Just like context menus, these should not inherit font settings from the text view they are attached to.
* Add a style class for touch selection popoversMatthias Clasen2014-10-073-0/+14
|
* Adwaita: change spinbutton button color on backdropLapo Calamandrei2014-10-073-3/+6
| | | | Contextually dim the spinbutton button color a little bit.
* Inspector: Use text attributes for monospace labelsMatthias Clasen2014-10-071-4/+7
|
* Inspector: Use the new monospace supportMatthias Clasen2014-10-073-22/+2
|
* Adwaita: Add .monospace styleMatthias Clasen2014-10-073-0/+10
|
* GtkTextView: Add a monospace propertyMatthias Clasen2014-10-073-1/+96
| | | | | | This is a convenient shortcut for a common case. It is implemented by adding a .monospace style class to the text view, and letting the theme decide about the monospace font to use.
* GtkSidebar: Pick up the visible child from the stackMatthias Clasen2014-10-061-0/+8
| | | | | | Same here: We need to synchronize the visible child with the selected row when setting a stack on the sidebar. I've noticed this problem in the sidebar example in gtk3-widget-factory.
* GtkStackSwitcher: Pick up the visible child from the stackMatthias Clasen2014-10-061-0/+8
| | | | | We forgot to synchronize the visible child when setting a stack on the switcher. Oops.
* Add GtkTextViewClass to the docsMatthias Clasen2014-10-061-35/+55
| | | | | | | | So that the existing information about draw_layer actually ends up in the docs. While we are at it, document the other vfuncs. https://bugzilla.gnome.org/show_bug.cgi?id=737952
* tooltip: fix line wrappingMichael Catanzaro2014-10-061-0/+1
| | | | | | | We enable line wrap on the internal GtkLabel, but nowadays this does nothing unless we also set a max number of characters. https://bugzilla.gnome.org/show_bug.cgi?id=737929
* cssshadowvalue: Add a cache for blurred Pango layoutsJasper St. Pierre2014-10-061-12/+110
| | | | | | | | | | | | | | | Drawing text with Pango is quite expensive, and drawing text and also blurring it is *really* expensive. To prevent us from drawing a lot of text and then blurring it a lot is *really* expensive. We now cache the blurred pixels for the last layout and shadow we made, which means we can repeatedly draw labels with a blurred text-shadow extremely fast. To detect whether the shadow is up-to-date, we track the serial of the PangoLayout alongside the radius of the box shadow. We don't support inset shadows nor spread on text-shadow, so we don't need to track these.
* Cosmetic formatting fixMatthias Clasen2014-10-051-1/+1
|
* GtkPlacesSidebar: Don't pile up duplicate bookmarksMatthias Clasen2014-10-051-0/+5
| | | | | | | | | | | | | | We get multiple notifications from the bookmark manager when something changes. Every time, we reconstruct the sidebar contents completely, by clearing the store. The bookmarks are added with async calls though, and the code was forgetting to cancel outstanding async requests, leading to multiple instances of the same bookmark getting added. Use the cancellable we already have to prevent that. This could be made much more efficient by not recreating the entire sidebar quite so often (3-5 times for a single bookmark rename). https://bugzilla.gnome.org/show_bug.cgi?id=737679
* Adwaita: fix last vertically linked focused entryLapo Calamandrei2014-10-053-7/+7
|
* GtkScrolledWindow: code cleanupMatthias Clasen2014-10-051-24/+3
| | | | | Remove return-if-fail parameter checks from static functions, where we don't normally do these.
* Cosmetic documentation improvementsMatthias Clasen2014-10-051-17/+14
|
* Use .label in the theme cssMatthias Clasen2014-10-044-294/+282
|
* Add a label style classMatthias Clasen2014-10-042-0/+15
|
* Adwaita: add vertically linked combosLapo Calamandrei2014-10-053-23/+48
|
* Fix a thinko in the previous commitMatthias Clasen2014-10-041-8/+7
| | | | GTK+ relies on this function silently failing for invalid data.
* Add a function to load css from a resourceMatthias Clasen2014-10-042-5/+24
| | | | | | | This is common enough that we should just provide an API for it - we already had a function for this purpose anyway. https://bugzilla.gnome.org/show_bug.cgi?id=672946
* Trivial documentation tweaksMatthias Clasen2014-10-041-22/+20
|
* Adwaita: added style for vertically linked entriesLapo Calamandrei2014-10-044-55/+342
|
* printing: Avoid missing iconsMatthias Clasen2014-10-042-4/+12
| | | | | | I've noticed a missing image show up in my print dialog, where the printer reported "printer-paused" as icon. Rearrange things so we always fall back to "printer" for printer icons.
* printing: Make GtkPrinter have a useful icon by defaultMatthias Clasen2014-10-041-1/+1
| | | | | | It causes complication elsewhere if gtk_printer_get_icon_name() returns NULL initially. So make the icon name default to "printer".
* printing: Another tweak to sheet drawingMatthias Clasen2014-10-041-3/+3
| | | | | After consultation, revisit the vertical centering to center the first 'stack', and put the second one behind it.
* inspector: Down the model treeMatthias Clasen2014-10-041-0/+16
| | | | | Show nested tree models, inside filter or sort models. Without this, you can't get at the data.
* Small code rearrangementMatthias Clasen2014-10-041-9/+5
|