Upstream changes
This commit is contained in:
parent
473c4d6f2f
commit
6416e6aaa2
@ -80,8 +80,8 @@ DISTCLEANFILES = $(xml_sources) $(no_xml_sources) $(gtksourceview_sources)
|
||||
%-mangled.h: upstream/%.h upstream/mangle.sh
|
||||
$(SHELL) $(srcdir)/upstream/mangle.sh $(srcdir)/upstream/$*.h > $@.tmp && mv $@.tmp $@
|
||||
|
||||
upstream/%.o:
|
||||
$(MAKE) $*-mangled.o
|
||||
upstream/%.lo:
|
||||
$(MAKE) $*-mangled.lo
|
||||
|
||||
libgtksourceview_la_SOURCES = \
|
||||
$(gtksourceview_sources) \
|
||||
|
@ -27,6 +27,6 @@ upstream_sources = \
|
||||
EXTRA_DIST = $(upstream_sources) mangle.sh
|
||||
|
||||
%.lo:
|
||||
cd .. && make upstream/$*.o
|
||||
%.o:
|
||||
cd .. && make upstream/$@
|
||||
%.o:
|
||||
cd .. && make upstream/$*.lo
|
||||
|
@ -370,33 +370,50 @@ reload_if_needed (GtkSourceStyleManager *mgr)
|
||||
gtk_source_style_manager_reload (mgr);
|
||||
}
|
||||
|
||||
GSList *
|
||||
gtk_source_style_manager_list_schemes (GtkSourceStyleManager *mgr)
|
||||
/**
|
||||
* gtk_source_style_manager_list_schemes:
|
||||
* @manager: a #GtkSourceStyleManager
|
||||
*
|
||||
* Returns the list of style schemes.
|
||||
*
|
||||
* Returns: a list of #GtkSourceStyleScheme objects. Returned value
|
||||
* is owned by @manager and must not be modified or freed. It may
|
||||
* become invalid when style schemes are added or removed, so copy
|
||||
* the list and reference its elements if you need to keep the list
|
||||
* around.
|
||||
**/
|
||||
const GSList *
|
||||
gtk_source_style_manager_list_schemes (GtkSourceStyleManager *manager)
|
||||
{
|
||||
GSList *list;
|
||||
g_return_val_if_fail (GTK_IS_SOURCE_STYLE_MANAGER (manager), NULL);
|
||||
|
||||
g_return_val_if_fail (GTK_IS_SOURCE_STYLE_MANAGER (mgr), NULL);
|
||||
reload_if_needed (manager);
|
||||
|
||||
reload_if_needed (mgr);
|
||||
|
||||
list = g_slist_copy (mgr->priv->schemes);
|
||||
g_slist_foreach (list, (GFunc) g_object_ref, NULL);
|
||||
|
||||
return list;
|
||||
return manager->priv->schemes;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_source_style_manager_get_scheme:
|
||||
* @manager: a #GtkSourceStyleManager
|
||||
* @scheme_id: style scheme id to find
|
||||
*
|
||||
* Looks up style scheme by id.
|
||||
*
|
||||
* Returns: a #GtkSourceStyleScheme object. Returned value is owned by
|
||||
* @manager and must not be unref'ed.
|
||||
**/
|
||||
GtkSourceStyleScheme *
|
||||
gtk_source_style_manager_get_scheme (GtkSourceStyleManager *mgr,
|
||||
gtk_source_style_manager_get_scheme (GtkSourceStyleManager *manager,
|
||||
const gchar *scheme_id)
|
||||
{
|
||||
GSList *l;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_SOURCE_STYLE_MANAGER (mgr), NULL);
|
||||
g_return_val_if_fail (GTK_IS_SOURCE_STYLE_MANAGER (manager), NULL);
|
||||
g_return_val_if_fail (scheme_id != NULL, NULL);
|
||||
|
||||
reload_if_needed (mgr);
|
||||
reload_if_needed (manager);
|
||||
|
||||
for (l = mgr->priv->schemes; l != NULL; l = l->next)
|
||||
for (l = manager->priv->schemes; l != NULL; l = l->next)
|
||||
if (!strcmp (scheme_id, gtk_source_style_scheme_get_id (l->data)))
|
||||
return l->data;
|
||||
|
||||
|
@ -71,8 +71,8 @@ gchar **gtk_source_style_manager_get_search_path (GtkSourceStyleManager
|
||||
gboolean gtk_source_style_manager_add_scheme (GtkSourceStyleManager *manager,
|
||||
const gchar *filename);
|
||||
|
||||
/* Newly allocated list of schemes (to free: unref each one and call g_slist_free) */
|
||||
GSList *gtk_source_style_manager_list_schemes (GtkSourceStyleManager *manager);
|
||||
/* Pointer to internal list, do not modify */
|
||||
const GSList *gtk_source_style_manager_list_schemes (GtkSourceStyleManager *manager);
|
||||
|
||||
GtkSourceStyleScheme *gtk_source_style_manager_get_scheme (GtkSourceStyleManager *manager,
|
||||
const gchar *scheme_id);
|
||||
|
@ -208,6 +208,17 @@
|
||||
<context ref="TO-ARGS-MSSM"/>
|
||||
</include></context>
|
||||
|
||||
<context id="func-m">
|
||||
<start>\b(AC_LANG)\s*(\()</start>
|
||||
<end>\)</end>
|
||||
<include>
|
||||
<context sub-pattern="1" where="start" style-ref="ac-macro"/>
|
||||
<context sub-pattern="2" where="start" style-ref="ac-macro"/>
|
||||
<context sub-pattern="0" where="end" style-ref="ac-macro"/>
|
||||
<context ref="ARGS-M"/>
|
||||
</include>
|
||||
</context>
|
||||
|
||||
<context id="func-ms">
|
||||
<start>\b(AC_DEFUN(_ONCE)?|AM_CONDITIONAL)\s*(\()</start>
|
||||
<end>\)</end>
|
||||
@ -253,7 +264,7 @@
|
||||
</context>
|
||||
|
||||
<context id="func-mss">
|
||||
<start>\b(AC_CONFIG_COMMANDS|AC_ENABLE|AC_WITH|AC_TRY_CPP|AC_CHECK_HEADER)\s*(\()</start>
|
||||
<start>\b(AC_CONFIG_COMMANDS|AC_ENABLE|AC_WITH|AC_TRY_CPP|AC_CHECK_HEADER|AC_LINK_IFELSE)\s*(\()</start>
|
||||
<end>\)</end>
|
||||
<include>
|
||||
<context sub-pattern="1" where="start" style-ref="ac-macro"/>
|
||||
@ -266,6 +277,7 @@
|
||||
<context id="m4-pure">
|
||||
<include>
|
||||
<context ref="m4-comment"/>
|
||||
<context ref="func-m"/>
|
||||
<context ref="func-ms"/>
|
||||
<context ref="func-mms"/>
|
||||
<context ref="func-mmss"/>
|
||||
@ -619,6 +631,7 @@
|
||||
<keyword>LANG_C</keyword>
|
||||
<keyword>LANG_CPLUSPLUS</keyword>
|
||||
<keyword>LANG_FORTRAN77</keyword>
|
||||
<keyword>LANG_OBJC</keyword>
|
||||
<keyword>LANG_RESTORE</keyword>
|
||||
<keyword>LANG_SAVE</keyword>
|
||||
<keyword>LIBTOOL_DLOPEN</keyword>
|
||||
|
Loading…
x
Reference in New Issue
Block a user