Re: new header style looking strange with some themes



Am 17.01.04 01:44 schrieb(en) Peter Bloomfield:
> Here's a way of setting embedded messages using a GtkFrame and a
> relatively small border.
> 
> Comments?

Looks really great!!!

For the (with AquaX) strange looking borders, the patch (kinda evil  
hack ;-) below replaces the "stripes" (from the theme pixmap background)  
with the base color of the text view widget, so it *should* be compatible  
with rc changes.

Cheers, Albrecht.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
      Phone (+49) 228 6199571  -  mailto:albrecht.dress@arcor.de
_________________________________________________________________________
--- balsa/src/balsa-message.c	2004-01-12 20:52:16.000000000 +0100
+++ balsa-rfc3156/src/balsa-message.c	2004-01-17 17:52:05.000000000 +0100
@@ -329,6 +329,7 @@
     GtkCellRenderer *renderer;
     GtkTreeSelection *selection;
     GdkColor color;
+    GtkStyle * text_style;
         
     /* Notebook to hold content + structure */
     bm->notebook = gtk_notebook_new();
@@ -371,6 +372,10 @@
     gtk_box_pack_start(GTK_BOX(bm->vbox), bm->header_container, FALSE, FALSE, 0);
 
     bm->header_text = gtk_text_view_new();
+    text_style = gtk_style_copy(bm->header_text->style);
+    memcpy(text_style->bg, text_style->base, sizeof(text_style->bg));
+    gtk_widget_set_style(bm->cont_viewport, text_style);
+    g_object_unref(G_OBJECT(text_style));
     gdk_color_parse ("grey85", &color);
     gtk_text_view_set_editable(GTK_TEXT_VIEW(bm->header_text), FALSE);
     gtk_text_view_set_left_margin(GTK_TEXT_VIEW(bm->header_text), 2);

PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]