Changeset 217


Ignore:
Timestamp:
May 21, 2010, 9:14:35 PM (4 years ago)
Author:
simon
Message:

Use the memphis_rule_attr_new() constructor (Emmanuel Rodriguez)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/memphis-rule-set.c

    r213 r217  
    309309      if (drw->type == POLYGONE) 
    310310        { 
    311           rule->polygon = g_slice_new0 (MemphisRuleAttr); 
     311          rule->polygon = memphis_rule_attr_new (); 
    312312          rule->polygon->color_red = drw->color[0]; 
    313313          rule->polygon->color_green = drw->color[1]; 
     
    323323          if (line_seen) { 
    324324            /* line with border */ 
    325             rule->border = g_slice_new0 (MemphisRuleAttr); 
     325            rule->border = memphis_rule_attr_new (); 
    326326            rule->border->color_red = rule->line->color_red; 
    327327            rule->border->color_green = rule->line->color_green; 
     
    344344          } else { 
    345345            /* only a single line */ 
    346             rule->line = g_slice_new0 (MemphisRuleAttr); 
     346            rule->line = memphis_rule_attr_new (); 
    347347            rule->line->color_red = drw->color[0]; 
    348348            rule->line->color_green = drw->color[1]; 
     
    358358      else if (drw->type == TEXT) 
    359359        { 
    360           rule->text = g_slice_new0 (MemphisRuleAttr); 
     360          rule->text = memphis_rule_attr_new (); 
    361361          rule->text->color_red = drw->color[0]; 
    362362          rule->text->color_green = drw->color[1]; 
Note: See TracChangeset for help on using the changeset viewer.