[Sugar-devel] adding gtk as a dependency on sugar-artwork

Gonzalo Odiard godiard at sugarlabs.org
Wed Jul 1 14:15:34 EDT 2015


Sam,
I don't have rawhide installed to test, can you try adding rules for the
two new and old ways, like here:

diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index 67e4e48..d14bbfb 100644
--- a/gtk3/theme/gtk-widgets.css.em
+++ b/gtk3/theme/gtk-widgets.css.em
@@ -221,10 +221,11 @@ column-header .button:hover:active {
     border-width: 0px;
 }

-GtkTreeView row:nth-child(even) {
+GtkTreeView row:even, GtkTreeView row:nth-child(even) {
     background-color: @row_even;
 }
-GtkTreeView row:nth-child(odd) {
+
+GtkTreeView row:odd, GtkTreeView row:nth-child(odd) {
     background-color: @row_odd;
 }

Works on Gtk 3.16, we need check if works on Gtk 3.18

Gonzalo

On Wed, Jul 1, 2015 at 1:29 PM, Martin Abente <
martin.abente.lahaye at gmail.com> wrote:

> From the tests I have done, I confirmed it is used in building time,
> therefore I have reverted the patch until we can determine a better
> solution.
>
> On Wed, Jul 1, 2015 at 12:05 PM, Martin Abente <
> martin.abente.lahaye at gmail.com> wrote:
>
>> Hello Sam,
>>
>> Different people reported an error while building sugar-artwork packages.
>> The error is caused by this commit [1] which makes GTK a building
>> requirement for sugar-artwork, but:
>>
>> a) if GTK version version is really used on building time, then the
>> approach used in [1] is wrong, because the css would depend on the GTK
>> version on the packager on something that is related to the final user
>> runtime environment.
>>
>> b) if the GTK version is only used in running time, then we should make
>> sure it does not become a building requirement.
>>
>> In either case, it does not seems to make sense to make it a dependency.
>>
>> Regards,
>> Martin.
>>
>>
>> Refs:
>> 1.
>> https://github.com/sugarlabs/sugar-artwork/commit/813a2d77d83284b031a4f2bd5775b9f82b12846e
>>
>
>


-- 
Gonzalo Odiard

SugarLabs - Software [for | by] children learning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20150701/871cd1f5/attachment.html>


More information about the Sugar-devel mailing list