~ubuntu-branches/ubuntu/maverick/conglomerate/maverick

« back to all changes in this revision

Viewing changes to src/cong-editor-area-structural-tag.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2005-11-08 05:07:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051108050706-bcg60nwqf1z3w0d6
Tags: 0.9.1-1ubuntu1
* Resynchronise with Debian (Closes: #4397).
  - Thanks, Jordan Mantha.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
}
121
121
 
122
122
 
 
123
static GdkColor*
 
124
theme_cb (CongEditorArea *editor_area,
 
125
          CongDispspecGCUsage usage)
 
126
{
 
127
        CongEditorAreaStructuralTag *area_structural_tag = (CongEditorAreaStructuralTag*)editor_area;
 
128
        return gdk_color_copy (cong_dispspec_element_col (PRIVATE(area_structural_tag)->ds_element,  usage));
 
129
}
 
130
 
123
131
/* Exported function definitions: */
124
132
/**
125
133
 * cong_editor_area_structural_tag_construct:
142
150
        g_return_val_if_fail (ds_element, NULL);
143
151
        g_return_val_if_fail (text, NULL);
144
152
 
 
153
        PRIVATE(area_structural_tag)->ds_element = ds_element;
145
154
        cong_editor_area_structural_construct (CONG_EDITOR_AREA_STRUCTURAL(area_structural_tag),
146
155
                                               editor_widget,
147
156
                                               pixbuf,
148
157
                                               text,
149
 
                                               cong_dispspec_element_col (ds_element,  CONG_DISPSPEC_GC_USAGE_BOLD_LINE),
150
 
                                               cong_dispspec_element_col (ds_element,  CONG_DISPSPEC_GC_USAGE_DIM_LINE),
151
 
                                               cong_dispspec_element_col (ds_element,  CONG_DISPSPEC_GC_USAGE_BACKGROUND),
152
 
                                               cong_dispspec_element_col (ds_element,  CONG_DISPSPEC_GC_USAGE_TEXT));
 
158
                                               theme_cb);
153
159
 
154
 
        PRIVATE(area_structural_tag)->ds_element = ds_element;
155
160
 
156
161
        return CONG_EDITOR_AREA (area_structural_tag);
157
162
}