diff options
author | Thomas Martitz <kugel@rockbox.org> | 2014-04-23 22:06:42 +0200 |
---|---|---|
committer | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2014-04-23 17:48:45 -0300 |
commit | f268f53ba3124614e4e62d07514e0070461f213c (patch) | |
tree | 82bb0f44bb803c643e64c91b1a156f7299dc5058 /plugins/gtk+/gtk+.xml.in | |
parent | 20d8a5ac2f89cfccd1a5ad530ae003ff64995373 (diff) | |
download | glade-f268f53ba3124614e4e62d07514e0070461f213c.tar.gz |
Backport 56f47169dc09cfd6ed13a24cb9752050ecb66d6f.
Thanks to Thomas Martitz for the backport.
GladeProject: Changed the way we calculate graph dependencies.
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()
Conflicts:
plugins/gtk+/glade-gtk-widget.c
Diffstat (limited to 'plugins/gtk+/gtk+.xml.in')
-rw-r--r-- | plugins/gtk+/gtk+.xml.in | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in index 56482f00..27cc395a 100644 --- a/plugins/gtk+/gtk+.xml.in +++ b/plugins/gtk+/gtk+.xml.in @@ -16,7 +16,6 @@ <get-property-function>glade_gtk_widget_get_property</get-property-function> <action-activate-function>glade_gtk_widget_action_activate</action-activate-function> <action-submenu-function>glade_gtk_widget_action_submenu</action-submenu-function> - <depends-function>glade_gtk_widget_depends</depends-function> <read-widget-function>glade_gtk_widget_read_widget</read-widget-function> <write-widget-function>glade_gtk_widget_write_widget</write-widget-function> <create-editor-property-function>glade_gtk_widget_create_eprop</create-editor-property-function> |