Make the iconfactory buildable implementation less strict
svn path=/trunk/; revision=20141
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2008-05-24 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
Bug 520989 – icon factory buildable too strict
|
||||||
|
|
||||||
|
* gtk/gtkiconfactory.c (icon_source_start_element): Make filename
|
||||||
|
an optional attribute.
|
||||||
|
|
||||||
2008-05-24 Matthias Clasen <mclasen@redhat.com>
|
2008-05-24 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Bug 387972 – gtkassistant drawing problem
|
Bug 387972 – gtkassistant drawing problem
|
||||||
|
|||||||
@ -51,7 +51,7 @@ This attribute is mandatory</para></listitem>
|
|||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>filename</term>
|
<term>filename</term>
|
||||||
<listitem><para>The filename of the source, a string.
|
<listitem><para>The filename of the source, a string.
|
||||||
This attribute is mandatory</para>
|
This attribute is optional</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
|||||||
@ -2827,9 +2827,9 @@ icon_source_start_element (GMarkupParseContext *context,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!stock_id || !filename)
|
if (!stock_id)
|
||||||
{
|
{
|
||||||
error_msg = g_strdup_printf ("<source> requires a stock_id and a filename");
|
error_msg = g_strdup_printf ("<source> requires a stock_id");
|
||||||
error_domain = GTK_BUILDER_ERROR_MISSING_ATTRIBUTE;
|
error_domain = GTK_BUILDER_ERROR_MISSING_ATTRIBUTE;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user