X-Git-Url: https://git.stderr.nl/gitweb?p=projects%2Fchimara%2Fchimara.git;a=blobdiff_plain;f=libchimara%2Fstyle.c;h=406a8848969f6d4cce70a9533694bac5401b374e;hp=a17a23659d8427c661d1e735162cb66a6a33a103;hb=fd95bbfc8f01fe812d9f24d1d377079df5f968d5;hpb=0cc686dee7c3d71457b409a097fbc7435709429a diff --git a/libchimara/style.c b/libchimara/style.c index a17a236..406a884 100644 --- a/libchimara/style.c +++ b/libchimara/style.c @@ -53,7 +53,6 @@ static const gchar* TAG_NAMES[] = { "user1", "user2", "hyperlink", - "pager", "default" }; @@ -123,16 +122,6 @@ glk_set_style_stream(strid_t str, glui32 styl) { str->glk_style = (gchar*) get_glk_tag_name(styl); } -/* Internal function: call this to initialize the layout of the 'more' prompt. */ -void -style_init_more_prompt(winid_t win) -{ - ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key); - - win->pager_layout = gtk_widget_create_pango_layout(win->widget, "More"); - pango_layout_set_attributes(win->pager_layout, glk_data->pager_attr_list); -} - /* Internal function: call this to initialize the default styles to a textbuffer. */ void style_init_textbuffer(GtkTextBuffer *buffer) @@ -343,15 +332,9 @@ style_init(ChimaraGlk *glk) g_object_set(tag, "foreground", "#0000ff", "foreground-set", TRUE, "underline", PANGO_UNDERLINE_SINGLE, "underline-set", TRUE, NULL); g_hash_table_insert(default_text_buffer_styles, "hyperlink", tag); - GtkTextTag *pager_tag = gtk_text_tag_new("pager"); - g_object_set(pager_tag, "family", "Monospace", "family-set", TRUE, "foreground", "#ffffff", "foreground-set", TRUE, "background", "#000000", "background-set", TRUE, NULL); - g_hash_table_insert(default_text_buffer_styles, "pager", pager_tag); - text_tag_to_attr_list(pager_tag, priv->pager_attr_list); - priv->styles->text_grid = default_text_grid_styles; priv->styles->text_buffer = default_text_buffer_styles; - /* Initialize the GLK styles to empty tags */ int i; for(i=0; istyles->text_buffer, "pager") ); - text_tag_to_attr_list(pager_tag, priv->pager_attr_list); -} - /* Determine the current colors used to render the text for a given stream. * This can be set in a number of places */ static void