| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
We also change cursors to indicate what interactions
are possible in various window regions.
Double clicking on the titlebar maximizes the window.
|
|
|
|
|
|
|
|
|
|
| |
Add a style property to control the presence and order of
window buttons. We allow buttons at the left and right side,
they can be specified like this: icon,close:minimize,maximize.
Also, change the default button layout back to have just a close
button on the right, use icons in buttons, and set style classes
on the buttons, to allow better theming.
|
|
|
|
|
|
|
|
|
|
|
| |
Add window-minimize, window-maximize, window-restore and window-delete
icons to the builtin icon theme. These will be used for icons in
the window buttons, and the expectation is that the icon theme
will provide icons matching the desired decoration style.
window-delete is used instead of window-close, since window-close
is also used for GTK_STOCK_CLOSE, and the two may require different
styles when used inside the application vs in the window frame.
|
|
|
|
|
|
|
|
| |
Hide the close button if the window is not deletable, hide the
maximize button if the window is not resizable, and hide all
buttons if the window is a dialog.
Update buttons when the window state changes.
|
|
|
|
|
| |
This looks at the application name or program name and uses that
as the title if gtk_window_set_title has not been called.
|
|
|
|
|
|
|
|
|
| |
Client side decorations can be enabled on non-Wayland platforms by
setting the GTK_CSD="1" environment variable.
We must ensure we have a GdkVisual that has an alpha channel since
the decorations rely on transparency. If we cannot get a visual with
an alpha channel then we do not enable client side decorations.
|
|
|
|
| |
This is expected behaviour for fullscreen windows.
|
|
|
|
|
|
| |
Otherwise we'll potentially get some background sticking through our rounded
corners in our decorations. The actual background will get drawn as part of
the decoration drawing.
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change comprises four main parts:
* the creation of the widgets that form the decorations,
* implementation of get_preferred_height/width, and the for_width/for_height
variants,
* taking the decorations into account when allocating,
* and drawing the decorations themselves.
Kristian did the bulk of the original work on this but any bugs are almost
certainly mine through the many refactorings and rebasings.
|
|
|
|
|
|
| |
This widget has been developed as GdHeaderBar in libgd.
The copy here has been renamed and changed to use GTK+
internals.
|
|
|
|
|
|
|
|
|
|
|
| |
Update the documentation and users of this function to handle
the future case that that we have some internal decorations to the window and
useable allocation is thus smaller.
By having a separate out parameter there is no need to have an in/out function
and allows for greater robustness.
The current implementation simply returns the allocation provided.
|
| |
|
| |
|
|
|
|
| |
Needed so that GDK_AVAILABLE_IN_3_10 works.
|
| |
|
|
|
|
| |
so mention the non deprecated gdk_device_grab as well
|
| |
|
| |
|
|
|
|
|
|
| |
For gtk_text_iter_get_char(), due to the "Returns" at the beginning of
the description, the description was not visible. So the first sentence
has been reworded.
|
|
|
|
|
|
|
|
|
|
| |
If there are rows that contain only spanning children,
our algorithm was unnecessarily distributing extra space
to the other rows, even if they contain only non-expanding
children.
We improve the behaviour by treating rows containing only
spanning children as expanding.
|
|
|
|
|
| |
This test exercises spanning children such that there are
rows which contain only spanning cells.
|
|
|
|
|
|
|
|
| |
... instead of taking the last one we find. This is necessary as
attached widgets (mostly menus) can be attached to an invisible widget,
but we still want to invalidate styles for them.
https://bugzilla.gnome.org/show_bug.cgi?id=695772
|
|
|
|
| |
Forward-port from gtk-3-8 branch.
|
| |
|
|
|
|
|
|
|
| |
Reftest for 61c4425161be3146c0c753a766f35442549bfe72.
Includes a workaround for a grid bug which should be removed once
GtkGrid is fixed.
|
|
|
|
|
|
|
| |
Borders for size requests and padding for drawing? Really?
Removed them, as that is the least invasive fix shortly before a
release.
|
|
|
|
|
|
| |
The 'core' naming is just an artifact of having several generations
of input extensions in X11, no need to propagate that into other
backends.
|
|
|
|
|
| |
At the same time, drop the GDK_ENABLE_BROKEN define.
Nothing broken in GDK broken anymore :-)
|
|
|
|
|
| |
Conflicts:
po/gl.po
|
| |
|
| |
|
|
|
|
|
|
| |
Remove widget references from interface docs.
https://bugzilla.gnome.org/show_bug.cgi?id=695874
|
|
|
|
|
|
|
|
| |
When setting new text on the label, the text-changed::delete signal
needs to be emitted before deleting the text (so that atk-bridge can
query the old text) while the text-changed::insert event needs to happen
afterwards (for the same reason). The old code using the notify signal
was only emitted after changing the text.
|
|
|
|
|
|
|
|
| |
It's not the application's fault that we don't do anything
with the passed GtkWindow on non-X11, so don't try to get an XID
on non-X11.
https://bugzilla.gnome.org/show_bug.cgi?id=695783
|
| |
|
| |
|
|
|
|
|
|
|
| |
Converts usage of Avahi API to DBus calls. This change allows
us to remove dependency on avahi-gobject and avoids of possible
circular dependency.
Lists printers if Gtk+ is compiled with CUPS 1.6 or newer.
|
|
|
|
|
|
|
| |
Really remove usage of error in previous commit.
Related to
https://bugzilla.gnome.org/show_bug.cgi?id=695714
|
|
|
|
|
|
|
|
| |
Asynchronously create testing connection to address returned
by GaServiceResolver. Don't request info for such printer if
the connection fails.
https://bugzilla.gnome.org/show_bug.cgi?id=695714
|
|
|
|
|
|
|
| |
The cursor theme and size settting code was ifdefed to only
be compiled with the X11 backend, but it didn't check for
running under X at runtime. Fix that.
http://bugzilla.gnome.org/695495
|
|
|
|
| |
Create correct URIs for printers on IPv6 networks.
|
|
|
|
|
|
|
|
| |
Both of them started to make use of round(), a C99 function. So, include
fallback-c89.c to provide a fallback implementation for round() for
compilers that don't have round()
https://bugzilla.gnome.org/show_bug.cgi?id=694339
|
|
|
|
|
|
| |
This is essentially done by simply copying from gtk/fallback-c89.c
https://bugzilla.gnome.org/show_bug.cgi?id=694339
|
|
|
|
|
|
|
|
| |
This is a workaround until we have a good idea on how we want to handle
signal disconnection before/during/after dispose and destroy vfunc
calls.
https://bugzilla.gnome.org/show_bug.cgi?id=671939
|
|
|
|
|
|
| |
XPM files weren't loaded properly.
https://bugzilla.gnome.org/show_bug.cgi?id=695228
|
|
|
|
|
|
|
| |
The implementation is not working and unused, since XDND is the
de-facto standard under X nowadays.
https://bugzilla.gnome.org/show_bug.cgi?id=695476
|
|
|
|
|
|
| |
Otherwise tests may start failing if they start after an old timeout triggers.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
|
|
|
|
|
|
| |
On failed tests, this lets us more easily see see which assertion failed.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
|
|
|
|
|
|
| |
cancelled dialog
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
|
|
|
|
|
|
| |
Instead, re-run tests made for GTK_RESPONSE_CANCEL with the delete-event response.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
|