| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Remove all the old 2.x and 3.x version annotations.
GTK+ 4 is a new start, and from the perspective of a
GTK+ 4 developer all these APIs have been around since
the beginning.
|
|
|
|
| |
This avoids a bunch of strdups at startup.
|
|
|
|
|
|
| |
We don't use the gtk_render apis internally anymore.
Drop these includes so it is clear where the remaining
uses are.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch makes that work using 1 of 2 options:
1. Add all missing enums to the switch statement
or
2. Cast the switch argument to a uint to avoid having to do that (mostly
for GdkEventType).
I even found a bug while doing that: clearing a GtkImage with a surface
did not notify thae surface property.
The reason for enabling this flag even though it is tedious at times is
that it is very useful when adding values to an enum, because it makes
GTK immediately warn about all the switch statements where this enum is
relevant.
And I expect changes to enums to be frequent during the GTK4 development
cycle.
|
|
|
|
|
|
|
|
|
|
|
| |
Since setting a clip is mandatory for almost all widgets, we can as well
change the size-allocate signature to include a out_clip parameter, just
like GtkCssGadget did. And since we now always propagate baselines, we
might as well pass that one on to size-allocate.
This way we can also make sure to transform the clip returned from
size-allocate to parent-coordinates, i.e. the same coordinate space
priv->allocation is in.
|
| |
|
| |
|
|
|
|
|
|
|
| |
And with it, remove the draw func from custom gadgets, that has been
NULL everywhere.
All gadgets are snapshot now.
|
| |
|
| |
|
|
|
|
| |
Input is handled by the menuitems completely.
|
|
|
|
|
| |
Instead, create an input window for the menubar and omit the window for
the menu itself.
|
|
|
|
|
|
|
|
| |
Add a new ::measure vfunc similar to GtkCssGadget's that widget
implementations have to override instead of the old get_preferred_width,
get_preferred_height, get_preferred_width_for_height,
get_preferred_height_for_width and
get_preferred_height_and_baseline_for_width.
|
| |
|
| |
|
|
|
|
| |
http://www.viva64.com/en/b/0383/
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Use G_PARAM_DEPRECATED with deprecated style properties.
This will make it easier to identify and remove such stale
properties from css, since it will now trigger warnings.
|
|
|
|
|
| |
The border can be controlled with regular CSS, so deprecate
and ignore this style property.
|
|
|
|
| |
Using the state of the context makes this more obviously correct.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As discussed on desktop-devel-list [1], "There should be an intuitive,
consistent, immediate way to jump to the widgets that live in the
header bar." F10 has been suggested for this as it is already used to
active menubars.
F10 will focus the custom titlebar widget if the window has one and it
isn't already focused. If the titlebar widget doesn't exist or is
already focused then F10 focuses the menubar if there is one.
[1] https://mail.gnome.org/archives/desktop-devel-list/2014-February/msg00176.html
https://bugzilla.gnome.org/show_bug.cgi?id=725141
|
|
|
|
|
|
|
|
|
| |
gnome-terminal is still using this setting, so we'll let
applications override it for another cycle. It is no longer
backed by a system-wide setting, though, and it will still
go away eventually.
This partically reverts b26c74e5dac0b5fd869d2c8cc7a0edb6b01aeebd
|
|
|
|
| |
Instead of Return value:
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=702996
|
|
|
|
| |
Use 'F10' by default.
|
|
|
|
|
| |
Just pick good defaults. The a11y team confirmed that they don't
rely on them.
|
|
|
|
| |
... for baseline support byu taking two extra (possible NULL) arguments.
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=689168
|
|
|
|
|
|
| |
In preparation for the removal of the internal-padding style property.
https://bugzilla.gnome.org/show_bug.cgi?id=689168
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make the main (and only) entry-point to gtkmodelmenu.c the now-public
gtk_menu_shell_bind_model().
Move the convenience constructors (gtk_menu_new_from_model() and
gtk_menu_bar_new_from_model()) to their proper files.
Remove the private header file.
Simplify the code a bit by making the initial populate part of the
bind() call.
https://bugzilla.gnome.org/show_bug.cgi?id=682831
|
|
|
|
|
|
|
|
| |
In gtk_menu_bar_draw, the check for shadow type != none
disables rendering of the background instead of the frame.
The check should be moved down to gtk_render_frame.
Patch by Peter de Ridder,
http://bugzilla.gnome.org/show_bug.cgi?id=670390
|
| |
|
| |
|
| |
|
|
|
|
| |
Previously it was only used by GtkMenuBar, and that's a naming mismatch.
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=651707
|
|
|
|
|
|
|
| |
Use the GtkStyleContext accessors for boxed properties where possible,
to reduce allocations.
https://bugzilla.gnome.org/show_bug.cgi?id=650420
|
|
|
|
|
|
| |
And the getter, too: gtk_menu_item_get_right_justified() and the
corresponding property. Also make the only caller use the private
structure (as it did before the recent patches).
|
|
|
|
| |
Yay for properly ellipsizing menubars!
|
| |
|
| |
|
|
|
|
|
| |
Pretty much just required hooking up the 2 vfuncs, the previous code
reorg did the rest of the work.
|