summaryrefslogtreecommitdiff
path: root/gladeui/glade-project.c
Commit message (Collapse)AuthorAgeFilesLines
* GladeProject: Segfault in gnome-builder when widget doesn't have a namePeter Maatman2021-07-131-1/+3
|
* GladeProject: cleanup glade_project_command_paste()Juan Pablo Ugarte2020-09-251-19/+5
|
* GladeCommand: adjust Box and Grid size automaticallyJuan Pablo Ugarte2020-09-251-30/+0
| | | | | | Adjust container size in create and paste command. Properly fix issue #470 "Widgets of type need placeholders to add children"
* GladeProject: support property and signal deprecated-sinceJuan Pablo Ugarte2020-09-031-15/+19
| | | | Check deprecated-since version for properties and signals
* GladeProject: ignore resource:// uri on file propertiesJuan Pablo Ugarte2020-08-311-10/+13
| | | | | | Add resources URL in file properties support to be on par with GtkBuilder Fix issue #367 "Glade removes double/triple slashes from URLs"
* Use g_list_free_full() instead of g_list_foreach() + g_list_free()Juan Pablo Ugarte2020-08-171-4/+1
| | | | Also fix -Wcast-function-type warnings
* GladeProjectProperties: various UI improvements.Juan Pablo Ugarte2020-08-071-52/+32
| | | | | Port to use headerbar, stack and stach switcher. Add warnings textview for deprecations warnigns.
* GladeProject: plug various glade widgets leaks.Juan Pablo Ugarte2020-08-071-14/+4
| | | | | | | Make sure objects retrieved with gtk_tree_model_get() are unref using g_autoptr This fixes all missing GladeWidget leaks so now we can remove toplevel destroy workaround and toplevels should not be leaked anymore after closing a project.
* GladeProject: cleanup disposeJuan Pablo Ugarte2020-08-051-47/+54
| | | | | | | | | GladeAdaptorChooserWidget: use g_object_add_weak_pointer() instead of g_object_weak_ref() and unset project on dispose. GladeDesignLayout, GladeDesignView: use g_object_add_weak_pointer() GladeEditable: fix project signal disconnect issue
* GladeProject: cleanup project finalizationJuan Pablo Ugarte2020-07-271-33/+16
| | | | | | | Call gtk_widget_destroy() on GtkWindow derived objects to avoid gtk keeping an internal reference Fix issue #363 "Toplevel windows are leaked when closing a project"
* GladeSignalDef: fix last gir scanner warningJuan Pablo Ugarte2020-06-191-2/+2
| | | | Rename GSC_VERSION_CHECK to GLADE_SIGNALS_DEF_VERSION_CHECK
* GladeWidgetAdaptor: fix gir scanner warningsJuan Pablo Ugarte2020-06-191-14/+14
| | | | Rename all macros starting with GWA to GLADE_WIDGET_ADAPTOR
* GladeProject: show message on invalid GtkBuilder fileJuan Pablo Ugarte2020-06-181-2/+8
| | | | | | | Show user an error dialog if he tries to open an old libglade file. https://gitlab.gnome.org/GNOME/glade/-/issues/389
* Fix minor typosYuri Chornoivan2020-03-221-13/+13
|
* gladeui: fix several tiny memory leaks found with valgrindCorentin Noël2019-09-031-2/+9
|
* Make it easier to track GladeXML elements and be GObject Introspection ↵Corentin Noël2019-08-291-2/+3
| | | | friendly by registering boxed types
* Fix on debug traces after rename GladePropertyClass to GladePropertyDefNoel Grandin2019-08-041-1/+1
|
* Fix split sentense in GladeProjectCorentin Noël2019-06-271-18/+15
|
* Respect the Glade namespace for macros and definesCorentin Noël2019-06-211-2/+2
|
* Rename GladePropertyClass to GladePropertyDef and declare it as boxedCorentin Noël2019-06-181-45/+45
|
* Rename GladeSignalClass to GladeSignalDef and declare it as boxedCorentin Noël2019-06-141-21/+21
|
* Couple of fixes for memory leaks found with valgrindCorentin Noël2019-05-211-1/+4
| | | | Most of them are unfreed string and missed GList elements.
* introspection: Add many annotations to sourcesCorentin Noël2019-04-011-15/+42
|
* docs: Make some changes to fix warnings with the documentationCorentin Noël2019-03-301-1/+1
|
* GladeProject: escape markup in parser errorsWill Thompson2019-03-131-1/+3
| | | | | | | | | | | | | | | | | If you try to load a non-XML file, such as Glade's own README, the parser error contains something like this: Start tag expected, '<' not found glade_util_ui_message() treats the supplied message as markup; so the literal < in the error message trips it up: Gtk-WARNING **: Failed to set text 'Error parsing file '/home/wjt/src/gnome/glade/README' on line 1 Start tag expected, '<' not found ' from markup due to error parsing markup: Error on line 2 char 30: Odd character 'f', expected a '=' after attribute name 'not' of element ''' To fix this, escape the message before passing it to glade_util_ui_message().
* GladeProject: add handler signalsJuan Pablo Ugarte2018-10-161-0/+128
| | | | | | | Add add, remove, change and activate handler signals. These signals can be used to easily track signal changes in a project instead of connecting callbacks to every widget.
* Fix tab/space identationJuan Pablo Ugarte2018-08-021-77/+77
|
* GladeWidgetAdaptor: add glade_widget_adaptor_get_display_name()Juan Pablo Ugarte2018-08-021-1/+1
|
* Remove GladeInstantiable prefix from UIJuan Pablo Ugarte2018-08-021-1/+1
|
* Add initial support for GFile type propertiesJuan Pablo Ugarte2018-07-261-4/+5
|
* GladeWidgetAdaptor: added deprecated-since metadataJuan Pablo Ugarte2018-06-011-3/+4
| | | | Added metadata needed to know in which Gtk version a class is deprecated
* GladeProject: always treat resource properties as relativeJuan Pablo Ugarte2018-02-241-13/+105
|
* Add highlighting of deprecated property & class namesDaniel P. Berrange2018-01-041-8/+10
| | | | | | | Use bold text to highlight the deprecated property & class names to make the deprecation messages easier to scan over. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Fix formatting / layout of project verification detailsDaniel P. Berrange2018-01-041-2/+3
| | | | | | | | | | | Two of the common deprecation messages are missing a newline, causing the message display to be 1000's of pixels wide The scrolled window displaying the messages is also not set to expand as the window grows, leaving only three lines of text visible by default. These bugs make the verification message display almost unusable. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* GladeProject: Identify when we are serializing for a previewTristan Van Berkom2016-01-291-0/+11
|
* GladeProject: redocument glade_project_new_widget_name()Tristan Van Berkom2016-01-271-2/+3
| | | | Now does not require the gwidget (actually did not for a long time).
* Avoid reading freed data in glade_project_read_requiresDavid Shea2014-07-251-1/+2
| | | | | Ensure that required_lib is NULL at the start of each iteration through the loop.
* Seal needed deprecated API.Juan Pablo Ugarte2014-05-071-0/+2
|
* Removed gladeui/glade-widget-private.h, use glade-private.h instead.Juan Pablo Ugarte2014-05-051-2/+0
|
* Add template check in project and widget verify functions.Juan Pablo Ugarte2014-04-251-0/+13
| | | | | This will warn a user if he is trying to create a template class that targets a gtk version that does not support it.
* Convert every object to use G_DEFINE_TYPE_WITH_CODE() or G_ADD_PRIVATE() macrosJuan Pablo Ugarte2014-04-171-109/+104
| | | | Fixed function prototype identation and spacing.
* Ignore widgets that are not part of the project when generating edgesJuan Pablo Ugarte2014-04-121-1/+7
| | | | | | of directed graph used to sort objects by topological order. Fixes bug 727992 "Editing UI and saving does not remove deleted Combo with Entry"
* Fixed bug #721098 "Anjuta hangs when opening project" The problem was that ↵Juan Pablo Ugarte2014-03-141-2/+5
| | | | | | | | | | glade registered GtkOffscreenWindow as a new type derived from GtkWindow to use in the run time which prevents Anjuta or any of its pluggins to use the real GtkOffscreenWindow widget. gladeui/glade-widget-adaptor.c: use glade_util_get_type_from_name() in generate_type() to avoid stepping over types that are simply not instantiated yet like GtkOffscreenWindow gladeui/glade-project.c: Use Adaptor name instead of runtime instance name to avoid showing GladeFake* types used by the backend for virtual types.
* Correctly capitalize CSS in stringsPiotr Drąg2014-03-031-2/+2
|
* gladeui: fix a pair of printf security problemsRyan Lortie2013-12-211-1/+1
| | | | | | | | | | | | | | | | | In two cases, gladeui was doing the equivalent of printf (var); instead of the correct (and safe): printf ("%s", var); This was caught by clang's pedantic treatment of non-literal format strings forcing me to add G_GNUC_PRINTF attributes to functions operating on format strings (which in turn caught the problem). Those changes are also included here. https://bugzilla.gnome.org/show_bug.cgi?id=720883
* GladeProjectProperties: added license page.Juan Pablo Ugarte2013-12-171-99/+174
| | | | | | | | | | Now it is posible to change license type and glade will automatically generate it for you if you supply copyright and authors GladeProject: save license data as comments. Make sure comments do not contain "--" glade-utils.c: added _glade_util_strreplace() private function.
* GladeProject: fixed <requires> tag outputJuan Pablo Ugarte2013-12-111-29/+28
| | | | | | | | GLADE_GTKBUILDER_HAS_VERSIONING() macro needs gtk version numbers, not the required module we want to save. Implemented glade_project_required_libs() using _glade_tsort() so that requires tags are saved in dependency order.
* GladeProject: Changed the way we calculate graph dependencies.Juan Pablo Ugarte2013-12-111-41/+76
| | | | | | | | | | | | | Instead of using glade_widget_depends() which implied N^2 invocations/iterations (where N is the numbers of objects in the project) we now calcualte dependencies based on property references. This way we only have to iterace over every object once to check the list of properties that constitute a reference to them. In a real world example, sorting objects in geany.glade decreased from 120ms to just 1ms plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk-widget.c: Removed unused glade_gtk_widget_depends()
* GladeProject: implemented GtkTreeModelIface with a GtkTreeStore proxy object.Juan Pablo Ugarte2013-12-111-455/+162
| | | | | | | | | | | | | This hopefully will set us free of treemodel bugs. For example, dnd was almost unusable with current gtk master without this patch. It was getting lots of iter warnings and eventually crashing if you wanted to drag one child from one toplevel to another back and foward. Besides, now there is less complex code to maintaing (about 300 lines) and should be faster in general since GtkTreeModel implements the data tree with GLists that do not regenerate each time you want to iterate over the model like we had to do because getting children from objects creates a new list.
* Fixed <requires> tag outputJuan Pablo Ugarte2013-11-211-9/+9
| | | | GLADE_GTKBUILDER_HAS_VERSIONING check was broken for gtk >= 3.0