summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 3.15.43.15.4Matthias Clasen2015-01-201-1/+1
|
* More updatesMatthias Clasen2015-01-201-0/+4
|
* image: Compute clip properlyBenjamin Otte2015-01-201-6/+7
| | | | | Use the helper function we have for this, don't do it manually. This has the side effect of also supporting icon transforms.
* render: Implement -gtk-icon-transform for icon surfacesBenjamin Otte2015-01-201-3/+51
| | | | | | | | | Yes, I like playing around. To enjoy, add this CSS to your application of choice (preferrably glade or something with lots of images): GtkImage { animation: spin 2s linear infinite; } You can thank me later.
* render: Split icon surface rendering outBenjamin Otte2015-01-203-43/+43
| | | | Just like normal icons, icon surfaces belong into gtkrendericon.c.
* render: Split icon rendering into its own fileBenjamin Otte2015-01-204-51/+127
|
* render: Remove spinner special-casesBenjamin Otte2015-01-207-104/+31
| | | | | | | | | The spinner is a regular builtin image now. There is no need to go through the shadows code manually anymore as regular items do get shadows automatically. This also allows simplifying the actual spinner drawing code so that it actually works.
* render: Render builtin images as regular CSS imagesBenjamin Otte2015-01-202-80/+23
| | | | | This not only reduces code, but also allows for builtin images to have shadows or be transformed using -gtk-icon-transform.
* render: Don't require passing CSS properties to builtin imagesBenjamin Otte2015-01-203-276/+133
| | | | | Instead, make the buiultin image get those properties itself in the compute vfunc.
* css: Move icon properties to the endBenjamin Otte2015-01-202-41/+41
| | | | | | | | The order in which properties are defined depends on the order in which they are computed. And that means that properties can only depend on other properties that are defined before them. The next patches will need this reordering.
* render: Only render 4 different arrowsBenjamin Otte2015-01-203-7/+55
| | | | | | | | Instead of supporting every angle, just support top, right, bottom and left and round the angle to one of those directions. Adwaita overrides arrows anyway and doesn't even look at the angle, so this should not be a problem.
* render: Don't pass junction sides to builtin imageBenjamin Otte2015-01-203-46/+68
| | | | | Instead, split the grip into 8 different builtin images (one for each side and corner).
* render: Extend builtin images to account for statesBenjamin Otte2015-01-203-33/+126
| | | | | We add to the enum to account for the images generated for different states.
* render: Move code for rendering builtin imagesBenjamin Otte2015-01-203-661/+976
| | | | | | | | Also, make it have a generic entry point with gtk_css_image_builtin_draw(). The only feature lost so is the drawing of shadows for spinners, but that will come back later.
* inspector: Remove unused hash tableBenjamin Otte2015-01-201-4/+0
|
* inspector: Remove unused treemodel propertiesBenjamin Otte2015-01-201-48/+3
| | | | | As a side effect, we can use _gtk_css_section_to_string() to format the section and save a lot of code.
* inspector: Use GtkCssStyle and gtk_css_value_to_string()Benjamin Otte2015-01-201-72/+9
|
* render: Move border rendering into its own fileBenjamin Otte2015-01-203-484/+505
| | | | | | gtkrenderborder.c now contains the implementation for gtk_css_style_render_border gtk_css_style_render_outline
* render: Remove unused headerBenjamin Otte2015-01-201-1/+0
|
* render: Rename gtkborderimage.[ch]Benjamin Otte2015-01-205-9/+9
| | | | I want the gtkrender prefix for all filenames about rendering.
* render: Use a GtkCssStyle instead of GtkStyleContext for focusBenjamin Otte2015-01-201-12/+14
|
* render: Rename gtkthemingbackground.[ch]Benjamin Otte2015-01-204-7/+7
| | | | I want the gtkrender prefix for all filenames about rendering.
* render: Take a GtkCssStyle for rendering framesBenjamin Otte2015-01-203-116/+107
| | | | ... and move the whole function into gtkthemingbackground.c
* borderimage: Use a GtkCssStyle instead of GtkStyleContextBenjamin Otte2015-01-203-9/+9
|
* themingbackground: Use a GtkCssStyle instead of GtkStyleContextBenjamin Otte2015-01-203-37/+37
|
* roundedbox: Take a GtkCssStyle instead of a GtkStyleContextBenjamin Otte2015-01-204-23/+23
| | | | | This is in preparation for iusing GtkCssStyle instead of GtkStyleContext in render functions.
* stylecontext: Rename function and export it.Benjamin Otte2015-01-202-15/+15
| | | | | The name now better reflects what it does, since GtkCssComputedValues was renamed to GtkCssStyle, too.
* reftests: Fix border-style-none reftestBenjamin Otte2015-01-201-2/+1
| | | | Unset all CSS; Adwaita was messing up things.
* dnd: Draw dnd icon with regular codeBenjamin Otte2015-01-201-57/+64
| | | | | | | Overriding the window background is ugly because the window background is owned by GTK and can be reset at any time. https://bugzilla.gnome.org/show_bug.cgi?id=742646
* stylecontext: Keep track of the CSS IDBenjamin Otte2015-01-205-1/+73
| | | | | | | This is necessary since we do the new caching and need to distinguish between styles with different IDs. Fixes various test cases.
* Updated Lithuanian translationAurimas Černius2015-01-191-850/+1444
|
* Updated Spanish translationDaniel Mustieles2015-01-191-193/+200
|
* Updated Spanish translationDaniel Mustieles2015-01-191-90/+94
|
* path bar: Don't segfault if we get disposed quicklyMatthias Clasen2015-01-191-0/+4
| | | | | | | | The file chooser code now calls into the path bar in init, starting an async operation. This unveiled that the path bar code was not safe against being disposed early, by causing a crahsh of the objects-finalize test. Fix this by making the callback check for CANCELLED.
* Updates for 3.15.4Matthias Clasen2015-01-191-0/+107
|
* places sidebar: Drop the top marginMatthias Clasen2015-01-191-1/+0
| | | | This looks odd in combination with the top underflow.
* x11: Fetch vendor/product identifiers for input devicesCarlos Garnacho2015-01-191-0/+43
| | | | | | These are retrieved from XInput device properties. https://bugzilla.gnome.org/show_bug.cgi?id=740758
* device: Add property/getters for vendor/product identifiersCarlos Garnacho2015-01-194-1/+123
| | | | | | | These are a construct only properties, expected to be filled in from platform specific code. https://bugzilla.gnome.org/show_bug.cgi?id=740758
* gtk-demo: Make editable cells demo more robustMatthias Clasen2015-01-191-3/+10
| | | | | | | | | When removing all rows, trying to add rows would not work and throw criticals. This is fallout from a recent change to insert rows at the right position. Fix this by handling the 'empty model' case separately. https://bugzilla.gnome.org/show_bug.cgi?id=743157
* scrolledwindow: Don't displace invalidation by the widget allocationCarlos Garnacho2015-01-191-5/+1
| | | | | | | | | | This was left unmodified when GtkScrolledWindow was made a windowed widget. Displacing here by the widget allocation is not necessary anymore, since we are invalidating the window set at these coordinates. This patch is a simplification of a previous one by Timm Bäder. https://bugzilla.gnome.org/show_bug.cgi?id=742243
* stylecontext: Fix FALSE/TRUE mixupBenjamin Otte2015-01-191-1/+1
| | | | | Introduced in e649c8773f0357df19f4e28aabf40a203a39c409. It's obviously the root node right there.
* scrolled window: Reduce the hover proximity distance furtherMatthias Clasen2015-01-181-2/+2
|
* file chooser: Fix up some focus issuesMatthias Clasen2015-01-181-10/+6
| | | | | Better to switch the visible stack child early, since GtkStack has its own focus handling now.
* gtkimagemenuitem: create widget for action icons lazilyLars Uebernickel2015-01-181-35/+32
| | | | | | | | | | | GtkImageMenuItem always packs a GtkImage when it is synced with a related action. This is unnecessary when the action doesn't have an icon set and results in excess padding when a GtkImageMenuItem is put in a menu bar (GtkUIManager does this). Fix this by not creating the GtkImage for icon-less actions. https://bugzilla.gnome.org/show_bug.cgi?id=742181
* render: Replace gtk_style_context_get_border/padding()Benjamin Otte2015-01-192-8/+21
| | | | Use _gtk_style_context_peek_property() instead.
* render: Get rid of gtk_style_context_get_color()Benjamin Otte2015-01-191-20/+12
| | | | Use _gtk_style_context_peek_property() instead.
* Adwaita: Make :active button gradient have 3 stopsBenjamin Otte2015-01-193-314/+149
| | | | | | | Just add a 3rd stop in the place where the gradients for the other states have a 3rd stop. When running transitions between states, this avoids cross-fades and instead uses the much faster gradient transitioning code.
* stylecontext: Be more graceful when save() isn't matched with restore()Benjamin Otte2015-01-191-8/+17
| | | | | | | | | | | | Instead of asserting, just print a g_warning() and try to work around the problem. I hope that g_warning() isn't too spammy for people that are hit with it. Also clarify the docs that not restore()ing after a save() is a bad idea. https://bugzilla.gnome.org/show_bug.cgi?id=743101
* stylecontext: Explicitly specify root nodeBenjamin Otte2015-01-191-8/+17
| | | | | | When creating the query path, explicitly specify if it's for a root node or for a child. Relying on gtk_style_context_is_saved() is unreliable (for example when updating the cache).
* file chooser: Make search work againMatthias Clasen2015-01-183-66/+136
| | | | | | | The last round of filechooser redesign work had left search somewhat dysfunctional. This commit fixes things up enough that search is once again a working feature of the file chooser.