X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2FguiControlFlow%2FDraw_Item.c;h=eccfef0fea5f876b46b58ab4c06bd5c499d28020;hb=90ffd2adca8a23a36f3a9b7279f40797907723de;hp=6dcf0a48004392e77a9eb50a8219afa452825c78;hpb=80a52ff84b0196d969d8e4bffe0f698652d8801c;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c b/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c index 6dcf0a48..eccfef0f 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c @@ -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; } @@ -293,7 +287,6 @@ gboolean draw_arc( void *hook_data, void *call_data) Draw_Context->Current->modify_over->x, Draw_Context->Current->modify_over->y, Properties->size, Properties->size, 0, 360*64); - g_critical("I draw arc over, x: %i, y: %i", Draw_Context->Current->modify_over->x, Draw_Context->Current->modify_over->y); Draw_Context->Current->modify_over->x += Properties->size; break; case MIDDLE: