| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Add support for GtkShortcutsWindow and its constituents.
This requires fixes and API changes on the GTK+ side.
|
|
|
|
|
|
|
|
| |
GTK+ warns nowadays if the state passed to gtk_style_context_get_*
does not match the state of the context. Avoid this by setting
the state beforehand.
https://bugzilla.gnome.org/show_bug.cgi?id=758300
|
| |
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=754030
|
| |
|
|
|
|
|
| |
The wording here is a bit awkward, and it is not obvious
is "Setting" is a verb or a noun.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=744094
|
|
|
|
|
|
|
| |
The code in glade_gtk_stack_add_child was not robust enough
against disappearing placeholders.
https://bugzilla.gnome.org/show_bug.cgi?id=740668
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Updated GTK+ widget catalog for new properties and signals
Updated for GTK+ 3.14 and 3.16 (so far), this patch also modifies
the scrolled window editor to place the overlay-scrollbars property
nicely into the custom editor.
Also set GtkSidebar target version 3.16 (we dont encode odd numbers here)
|
|
|
|
|
| |
Mark the title property as translatable, and prevent the stack
property from showing up twice in the editor.
|
|
|
|
| |
This makes them show up in a connect stack switcher.
|
|
|
|
|
|
| |
Implement all of the required adaptor functions, add a virtual
'page' property and use it instead of visible-child-name to switch
between the pages to edit.
|
| |
|
|
|
|
| |
This is identical to what glade is already doing for notebooks.
|
| |
|
|
|
|
|
|
|
| |
These widgets are in GTK+ since 3.12, time that glade starts
supporting them.
https://bugzilla.gnome.org/show_bug.cgi?id=738480
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
gtk_widget_destroy() is not the right counterpart for
g_object_ref(), and it is useless anyway to do a ref-unref
pair around gtk_container_remove(), so just drop this.
This fix makes the placeholder instance count go down again
when shrinking the size of a box.
https://bugzilla.gnome.org/show_bug.cgi?id=739751
|
|
|
|
|
|
|
|
|
|
|
| |
Having separate start-/end-size properties is nice because it
makes intuitive sense, but unfortunately, the actual headerbar
child properties (position, pack-type) are not sufficient to
fully reconstruct the needed placeholders. This is causing
anomalies and possibly crashes with undo/redo. For now, keep
things working the same way they do in boxes: placeholders
are always in pack-start, and only actual children can be
moved to pack-end.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Removed misguided code block in ->add_child()
The said code block assumes that any placeholder being added
should be added at the end 'if' anything is at the start.
This big block of code makes things seem to work if you happened
to save the file with one placeholder on each side (sneaky), however
just breaks down when you save more than one placeholder at the
beginning.
In any case, the number of placeholders should be synchronized to
the "start-size" / "end-size" properties (minus the number of real
children which should be placed according to their "position"
packing property).
o Removed destructive calls to gtk_widget_destroy(), widgets are
not destroyed unless the project is finalized or the final reference
to them is part of a GladeCommand that is being cleared from the
undo/redo stack
o Ensure that the replacement placeholder added when ->remove_child()
is called has the special child type set if it's the title widget
(not sure if this is needed, but it doesnt hurt).
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The custom editor was calling glade_widget_property_set_sensitive()
directly which does not work with undo/redo.
Cleaned up the editor and adaptor so that the editor issues commands
and the adaptor->set_property() adjusts property sensitivity when
'show-close-button' and 'use-custom-title' properties change.
Also some minor changes to the gtk+.xml.in, no need for the
decoration layout property to be optional really, since the property
is a string and will not be saved if it's not set.
|
|
|
|
|
|
| |
Make add/remove slot work without crashing. Turn 'add slot' into
a widget action, and don't offer 'remove slot' for the custom
title placeholder.
|
|
|
|
| |
And ignore show-close-button.
|
| |
|
|
|
|
|
| |
Among other things, this lets us undoably remove a custom title
widget.
|
|
|
|
|
|
|
|
|
| |
Add support for GtkHeaderBar. Based on a patch by John Stowers.
This allows setting custom titles, and adding multiple children
at either end of the header bar. Repositioning children is not
really working, due to limitations of the GtkHeaderBar API.
https://bugzilla.gnome.org/show_bug.cgi?id=700914
|
|
|
|
|
| |
In glade_gtk_container_replace_child(), warn if the passed 'current' widget
is not a direct child of 'container'.
|
| |
|
|
|
|
| |
This makes adding and removing center widgets undoable.
|
|
|
|
|
|
|
| |
In 3.12, GtkBox gained support for a centered child. With this
patch, glade supports this too.
https://bugzilla.gnome.org/show_bug.cgi?id=738473
|
|
|
|
|
|
|
|
| |
Previous implementation assumes that the parent widget can
be retrieved with gtk_widget_get_parent(), use glade_widget_get_parent()
instead and trust the project datamodel instead, as the logical
widget hierarchy may not be exactly the truth, as is the case for
a searchbar child.
|
|
|
|
|
|
| |
Changed glade_gtk_search_bar_add_child() to not make the assumption
that a current "child" widget exists, which it doesnt at project load
time (until one is actually loaded).
|
|
|
|
|
| |
This is needed to make saving children of GtkSearchBar work.
gtk_container_forall is sdaly broken for many containers.
|
|
|
|
|
|
|
| |
Don't apply the search-mode and show-close-button properties
in the embedded view, since it would be confusing to have the
search bar just 'disappear'. We do save these properties, so
it is possible to set them up for the actual application.
|
|
|
|
|
|
|
| |
This widget has been around since 3.10, high time that glade
starts supporting it.
https://bugzilla.gnome.org/show_bug.cgi?id=738493
|
|
|
|
|
| |
Avoid GTK_CHECK_VERSION ifdefs working around the absense of
gtk_window_get_titlebar().
|
|
|
|
| |
Avoid the possibility of translatable string redundancy.
|
|
|
|
|
| |
Make desensitizing of title, decorated and hide-titlebar-when-maximized
part of the undo history, and also reset them to their default values.
|
|
|
|
|
|
|
|
|
| |
This is needed so that when the command is issued, it can also
include the child deletion as a part of the command group.
When a window is using CSD, mark the title, decoration and
hide-when-maximized editors as insensitive, since they affect
non-CSD decorations.
|
|
|
|
|
|
|
|
| |
This patch adds support for the titlebar slot in GtkWindow.
The rendering of windows with csd titlebar is somewhat broken
in glade.
https://bugzilla.gnome.org/show_bug.cgi?id=700914
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
GladeApp GladePointerMode icons and devhelp icon are now registered as icon names
GladeWindow: replaced deprecated gtk_tool_button_new_from_stock() with
gtk_tool_button_new() + gtk_image_new_from_icon_name() to create actions tool items
GTK+ Catalog, glade.glade: replaced every stock icon with the corresponding icon name
TODO: the only stock icon that does not seem to have a replacement is gtk-edit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gtk_button_new_from_stock() -> gtk_button_new_from_icon_name()
gtk_widget_render_icon_pixbuf() -> gtk_icon_theme_load_icon()
gtk_widget_set_margin_left() -> gtk_widget_set_margin_start()
Stock images with icon names
GTK_STOCK_ADD -> "list-add"
GTK_STOCK_REMOVE -> "list-remove"
GTK_STOCK_OPEN -> "document-open"
GTK_STOCK_GO_DOWN -> "go-down"
GTK_STOCK_DIALOG_WARNING -> "dialog-warning"
GTK_STOCK_INFO -> "dialog-information"
GTK_STOCK_SAVE -> "document-save"
GTK_STOCK_REFRESH -> "view-refresh"
|
| |
|