Avoid code duplication
[projects/chimara/chimara.git] / libchimara / style.c
index 0df3bbdd62927c2035f819ba9e1bde2a9ad7d340..207a7f7cb9342ca7005e65f8faf15bc4636d45dd 100644 (file)
@@ -405,8 +405,6 @@ create_css_file_scanner(void)
 void
 scan_css_file(GScanner *scanner, ChimaraGlk *glk)
 {
-       CHIMARA_GLK_USE_PRIVATE(glk, priv);
-
        while( g_scanner_peek_next_token(scanner) != G_TOKEN_EOF) {
                if( !style_accept_style_selector(scanner, glk) )
                        break;
@@ -415,8 +413,7 @@ scan_css_file(GScanner *scanner, ChimaraGlk *glk)
        g_scanner_destroy(scanner);
 
        /* Update the pager prompt to the new style */
-       GtkTextTag *pager_tag = GTK_TEXT_TAG( g_hash_table_lookup(priv->styles->text_buffer, "pager") );
-       text_tag_to_attr_list(pager_tag, priv->pager_attr_list);
+       style_update(glk);
 }
 
 /* Internal function: parses a token */
@@ -1075,6 +1072,9 @@ glk_style_distinguish(winid_t win, glui32 styl1, glui32 styl2)
  *   colors are reversed.</para></listitem>
  * </varlistentry>
  * </variablelist>
+ * Signed values, such as the %stylehint_Weight value, are cast to
+ * <type>glui32</type>. They may be cast to <type>glsi32</type> to be dealt with
+ * in a more natural context.
  * 
  * Returns: TRUE upon successul retrieval, otherwise FALSE.
  */