show text : running state
[lttv.git] / ltt / branches / poly / lttv / modules / guiControlFlow / Draw_Item.c
index 72536e7fe46fb5e572001ff2d5a2bfee4886e336..eccfef0fea5f876b46b58ab4c06bd5c499d28020 100644 (file)
@@ -105,13 +105,11 @@ gboolean draw_text( void *hook_data, void *call_data)
        gdk_gc_set_foreground(Draw_Context->gc, Properties->foreground);
        gdk_gc_set_background(Draw_Context->gc, Properties->background);
 
-       layout = gtk_widget_create_pango_layout(GTK_WIDGET(Draw_Context->drawable), NULL);
+       layout = Draw_Context->pango_layout;
        context = pango_layout_get_context(layout);
        FontDesc = pango_context_get_font_description(context);
-       Font_Size = pango_font_description_get_size(FontDesc);
        pango_font_description_set_size(FontDesc, Properties->size*PANGO_SCALE);
        
-       
        pango_layout_set_text(layout, Properties->Text, -1);
        pango_layout_get_pixel_extents(layout, &ink_rect, NULL);
        switch(Properties->position) {
@@ -139,10 +137,6 @@ gboolean draw_text( void *hook_data, void *call_data)
                        break;
        }
 
-
-       pango_font_description_set_size(FontDesc, Font_Size);
-       g_free(layout);
-       
        return 0;
 }
 
This page took 0.024684 seconds and 4 git commands to generate.