Age | Commit message (Collapse) | Author |
|
In xml_element_end_cb we were calling XML_StopParser when finding a
</theme> tag, but the semantics of that are the XML_Parse will return an
abort error which then results in us reporting a parse error. Instead of
explicitly trying to stop the parser we simply ignore the </theme> tags
and assume we will get an error from expat if the tag is unbalanced.
|
|
This is fallout from converting from the custom list implementation to
GList. In xml_stack_pop we were using free() instead of g_list_free_1 to
free a list node but also we were leaving the prev member of the new top
in an inconsistent (non-NULL) state which was confusing the GList
implementation resulting in a crash. We now use g_list_delete_link to
remove the top of the list.
|
|
We were assuming an error with parsing if XML_Parse returned a non-zero
value but actually the API is defined so the opposite is true so we now
only report a warning when XML_Parse returns zero.
|
|
This removes the option of overriding the use of compositing in a theme.
|
|
This fixes some crashes due to lists now being based on the glib slice
allocated but the previous matchbox list API just used malloc/free.
There were some places in matchbox where we were using free() to free
links of a list, but now we need to use g_list_free_1.
|
|
We now simply print a warning and fallback to the default material if we
fail to parse a theme's xml.
|
|
So the naming of MBWindowManager is consistent with other matchbox
objects the new name is MBWMManager. The API has also been modified so
that method functions aren't simply using the mb_wm_method_name scheme
they new use a mb_wm_manager_method_name scheme. Some of the property
setters were missing an explicit "set" in the name which has been added,
and in anticipation that we will start to replace the use of "client"
with "window" some of methods corresponding to windows have been renamed
ahead of time.
|
|
This actually replaces all use of the mb_wm_util_list API so all the
code now just uses the g_list API directly.
|
|
There currently lots of inconsistent ways we refer to matchbox 2; it can
be mbwm2, matchbox-wm-2, matchbox2, matchbox-window-manager-2 and things
are also confusing when considering the naming of pkg-config files and for
choosing the directory name for installing headers.
The approach I'm starting to settle on (this goes back on some of the
renaming changes I made recently, so sorry for the churn) is to consider
the canonical name of the project just "matchbox" and then we use the
package/library versioning to define it as "2.0".
Headers now get installed in $prefix/include/matchbox-2.0/matchbox and
the top level header has been renamed from mb-wm.h to matchbox.h. The
pkg-config file will be installed as matchbox-2.0.pc
|