typo fix == for =
[lttv.git] / ltt / branches / poly / lttv / modules / guiControlFlow / Draw_Item.c
index 6dcf0a48004392e77a9eb50a8219afa452825c78..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;
 }
 
@@ -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:
This page took 0.024418 seconds and 4 git commands to generate.