Added a graphical image representing increase/decrease in price.
[stockwidget] / lib-stock-home-widget.h
index 1f48194..0a6935e 100644 (file)
@@ -9,6 +9,7 @@
 /* Standard includes */
 #include <glib-object.h>
 #include <libhildondesktop/libhildondesktop.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
 
 /* Custom includes */
 #include "stockgetter.h"
@@ -35,9 +36,16 @@ typedef struct _StockPluginContext
 {
        /* Used for updating when stock price changes */
        GtkWidget       *psLabel;
+       GtkWidget       *psArrow;
        GtkWidget       *psEventBox;
        GtkWidget       *psParent;
 
+       /* Arrow active */
+       gboolean bArrowActive;
+       
+       /* PixBuf of stock images */
+       GdkPixbuf *asStockImage[2];
+
        /* Stock Getter Handle */
        SGHandle hSG;
 
@@ -64,6 +72,9 @@ GType stock_home_plugin_get_type(void);
 
 G_END_DECLS
 
+#define STOCK_IMAGE_INCREASE 0
+#define STOCK_IMAGE_DECREASE 1
+
 #define DEBUG
 
 /* Debug print only */