summaryrefslogtreecommitdiff
path: root/plugins/gtk+
Commit message (Collapse)AuthorAgeFilesLines
* Support GtkShortCutsWindowwip/matthiasc/shortcutsMatthias Clasen2015-11-2225-13/+1779
| | | | | Add support for GtkShortcutsWindow and its constituents. This requires fixes and API changes on the GTK+ side.
* string list: Avoid GTK+ warningsMatthias Clasen2015-11-201-2/+5
| | | | | | | | 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
* Fix typo in gtk+.xml.inBen Iofel2015-11-041-1/+1
|
* GtkButton: fix typoBen Iofel2015-11-031-1/+1
|
* Add "Stack" to "Add parent" menuFlorian Richter2015-08-252-0/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=754030
* plugins/gtk+/gtk+.xml.in: removed GtkPackType displayable values redefinitionJuan Pablo Ugarte2015-06-111-8/+1
|
* Add a translator commentMatthias Clasen2015-03-021-0/+6
| | | | | The wording here is a bit awkward, and it is not obvious is "Setting" is a verb or a noun.
* Rename GtkSidebar to GtkSidebarWidgetLars Uebernickel2015-02-135-4/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=744094
* GtkStack: Survive loading an empty stackMatthias Clasen2015-01-181-4/+4
| | | | | | | The code in glade_gtk_stack_add_child was not robust enough against disappearing placeholders. https://bugzilla.gnome.org/show_bug.cgi?id=740668
* stackswitcher: Better iconsMatthias Clasen2014-11-212-0/+0
|
* Adding 3.14 and 3.16 version targets to the GTK+ pluginTristan Van Berkom2014-11-212-34/+51
| | | | | | | | | | 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)
* Stack switcher improvementsMatthias Clasen2014-11-211-1/+5
| | | | | Mark the title property as translatable, and prevent the stack property from showing up twice in the editor.
* Set a title for new stack pagesMatthias Clasen2014-11-211-3/+4
| | | | This makes them show up in a connect stack switcher.
* Many GtkStack fixesMatthias Clasen2014-11-213-23/+480
| | | | | | 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.
* Support GtkSidebar as wellMatthias Clasen2014-11-215-0/+5
|
* Make stack switching work from the treeMatthias Clasen2014-11-211-5/+66
| | | | This is identical to what glade is already doing for notebooks.
* Add editors for GtkStack and GtkStackSwitcherMatthias Clasen2014-11-2111-2/+664
|
* Support GtkStack and GtkStackSwitcherMatthias Clasen2014-11-2110-1/+147
| | | | | | | These widgets are in GTK+ since 3.12, time that glade starts supporting them. https://bugzilla.gnome.org/show_bug.cgi?id=738480
* Avoid box stuff leaking through for the color chooserMatthias Clasen2014-11-211-1/+12
|
* Adding 3.14 and 3.16 version targets to the GTK+ pluginTristan Van Berkom2014-11-211-2/+2
|
* Fix a typoMatthias Clasen2014-11-101-1/+1
|
* Plug a placeholder leak in the box adaptorMatthias Clasen2014-11-071-2/+0
| | | | | | | | | | | 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
* Switch to a single size property for GtkHeaderBarheaderbarMatthias Clasen2014-11-073-183/+125
| | | | | | | | | | | 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.
* GtkHeaderBar: Improving child add/remove/replace supportTristan Van Berkom2014-11-071-69/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* GtkHeaderBar: Fixed property sensitivity issuesTristan Van Berkom2014-11-073-51/+98
| | | | | | | | | | | | | 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.
* Fixes for actionsMatthias Clasen2014-11-072-42/+154
| | | | | | 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.
* Redo sensitivity handlingMatthias Clasen2014-11-073-15/+46
| | | | And ignore show-close-button.
* Coding style cleanupsMatthias Clasen2014-11-071-36/+52
|
* Add a headerbar editorMatthias Clasen2014-11-077-3/+562
| | | | | Among other things, this lets us undoably remove a custom title widget.
* Initial GtkHeaderBar supportMatthias Clasen2014-11-077-1/+370
| | | | | | | | | 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
* Added return if fail warningTristan Van Berkom2014-11-071-2/+1
| | | | | In glade_gtk_container_replace_child(), warn if the passed 'current' widget is not a direct child of 'container'.
* Bug 739310 - Removed rampant '>' from gtk+.xml.inTristan Van Berkom2014-10-291-1/+0
|
* Move use-center-child to the box editorMatthias Clasen2014-10-273-23/+114
| | | | This makes adding and removing center widgets undoable.
* Add GtkBox center-widget supportMatthias Clasen2014-10-272-2/+93
| | | | | | | 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
* glade-gtk-widget.c: Minor fix for 'add_parent' actionsearchbarTristan Van Berkom2014-10-261-7/+2
| | | | | | | | 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.
* glade-gtk-searchbar.c: Avoid critical warnings when loading searchbarsTristan Van Berkom2014-10-261-1/+4
| | | | | | 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).
* Add a get_children function for GtkSearchBarMatthias Clasen2014-10-252-0/+12
| | | | | This is needed to make saving children of GtkSearchBar work. gtk_container_forall is sdaly broken for many containers.
* Searchbar: Ignore some propertiesMatthias Clasen2014-10-252-1/+5
| | | | | | | 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.
* Support GtkSearchBarMatthias Clasen2014-10-257-0/+125
| | | | | | | This widget has been around since 3.10, high time that glade starts supporting it. https://bugzilla.gnome.org/show_bug.cgi?id=738493
* Depend on GTK+ 3.15csdTristan Van Berkom2014-10-232-35/+0
| | | | | Avoid GTK_CHECK_VERSION ifdefs working around the absense of gtk_window_get_titlebar().
* glade-gtk-window.c: Reuse translatable stringTristan Van Berkom2014-10-231-6/+5
| | | | Avoid the possibility of translatable string redundancy.
* Use proper mechanisms to deal with dependent propertiesMatthias Clasen2014-10-222-7/+26
| | | | | Make desensitizing of title, decorated and hide-titlebar-when-maximized part of the undo history, and also reset them to their default values.
* GladeWindowEditor: Added custom control for client side decorationsMatthias Clasen2014-10-223-51/+162
| | | | | | | | | 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.
* Support CSD windowsMatthias Clasen2014-10-222-0/+146
| | | | | | | | 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
* Replaced deprecated stock items with its corresponding label strings.Juan Pablo Ugarte2014-05-152-6/+6
|
* Removed use of deprecated GtkMisc APIJuan Pablo Ugarte2014-05-153-5/+3
|
* Added GThemedIcon supportJuan Pablo Ugarte2014-05-091-1/+4
|
* Migrated from stock icons to icon namesJuan Pablo Ugarte2014-05-071-21/+21
| | | | | | | | | | 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
* Replaced deprecated functionsJuan Pablo Ugarte2014-05-075-7/+9
| | | | | | | | | | | | | | | | 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"
* Seal needed deprecated API.Juan Pablo Ugarte2014-05-0716-30/+156
|