psContext->psSettings->ppszTickers[0],fPrice,pszColour,fChange,szTime);
gtk_label_set_markup(GTK_LABEL(psContext->psLabel),szBuffer);
- gtk_widget_queue_draw(GTK_WIDGET(psContext->psLabel));
+ gtk_widget_queue_draw(GTK_WIDGET(psContext->psParent));
}
/*
If it fails, leave the old price as the user can see the timestamp
eventbox = gtk_event_box_new();
gtk_event_box_set_visible_window(GTK_EVENT_BOX(eventbox),FALSE);
- gtk_container_set_border_width(GTK_CONTAINER(eventbox),3);
+ gtk_container_set_border_width(GTK_CONTAINER(eventbox),10);
gtk_container_add(GTK_CONTAINER(eventbox),label);
psContext->hSG = hSG;
psContext->nTimerID = -1;
+ psContext->psParent = GTK_WIDGET(desktop_plugin);
/* Assign private data to plugin */
desktop_plugin->context = psContext;
DebugOut(("X: %d Y: %d Width: %d Height %d",psRect->x,psRect->y,psRect->width,psRect->height));
cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.5);
+ #if 1
cairo_rounded_rectangle(cr, 0, 0, width, height, 10.0);
+ #else
+ cairo_rectangle(cr, 0, 0, width, height);
+ #endif
cairo_fill(cr);
cairo_destroy(cr);
stock_plugin_class_init (StockPluginClass *klass)
{
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass);
- #if 1
widget_class->realize = stock_plugin_realize;
widget_class->expose_event = stock_plugin_expose;
- #endif
G_OBJECT_CLASS(klass)->finalize = stock_plugin_finalize;
}