00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00029 #ifndef __HILDON_STATUS_BAR_MAIN__H__
00030 #define __HILDON_STATUS_BAR_MAIN__H__
00031
00032 #define HILDON_STATUS_BAR_NAME "statusbar"
00033 #define HILDON_STATUS_BAR_VERSION "1.0"
00034
00035 #define HSB_MAX_NO_OF_ITEMS 30
00036 #define HSB_VISIBLE_ITEMS 7
00037
00038
00039
00040
00041 #define HSB_ITEM0_X 240
00042 #define HSB_ITEM0_Y 0
00043 #define HSB_ITEM1_X 200
00044 #define HSB_ITEM1_Y 0
00045 #define HSB_ITEM2_X 160
00046 #define HSB_ITEM2_Y 0
00047 #define HSB_ITEM3_X 120
00048 #define HSB_ITEM3_Y 0
00049 #define HSB_ITEM4_X 80
00050 #define HSB_ITEM4_Y 0
00051 #define HSB_ITEM5_X 40
00052 #define HSB_ITEM5_Y 0
00053 #define HSB_ITEM6_X 0
00054 #define HSB_ITEM6_Y 0
00055
00056
00057
00058 #define HSB_FIRST_DYN_SLOT 5
00059
00060 #define HSB_PRESENCE_SLOT 4
00061 #define HSB_DISPLAY_SLOT 3
00062 #define HSB_SOUND_SLOT 2
00063 #define HSB_INTERNET_SLOT 1
00064 #define HSB_BATTERY_SLOT 0
00065
00066 #define HSB_DESKTOP_ENTRY_GROUP "Desktop Entry"
00067 #define HSB_DESKTOP_ENTRY_NAME "Name"
00068 #define HSB_DESKTOP_ENTRY_PATH "X-status-bar-plugin"
00069 #define HSB_DESKTOP_ENTRY_CATEGORY "Category"
00070 #define HSB_DESKTOP_ENTRY_ICON "Icon"
00071
00072
00073 #define XLIB_FORMAT_32_BIT 32
00074
00075 typedef struct status_bar_st StatusBar;
00076
00077 struct status_bar_st
00078 {
00079 GtkWidget *window;
00080 GtkWidget *items[HSB_MAX_NO_OF_ITEMS];
00081 GtkWidget *fixed;
00082
00083
00084
00085 gint plugin_pos_x[HSB_MAX_NO_OF_ITEMS];
00086
00087
00088 gint plugin_pos_y[HSB_MAX_NO_OF_ITEMS];
00089
00090 };
00091
00092
00093
00094 typedef struct status_bar_del_ib_st SBDelayedInfobanner;
00095
00096 struct status_bar_del_ib_st
00097 {
00098 gint32 displaytime;
00099 gchar *text;
00100 guint timeout_to_show_id;
00101 guint timeout_onscreen_id;
00102 GtkWidget *banner;
00103 };
00104
00105 int status_bar_main(osso_context_t *osso, StatusBar **panel);
00106 void status_bar_deinitialize(osso_context_t *osso, StatusBar **panel);
00107
00108 #endif