formatting

SVN revision: 73260
This commit is contained in:
Mike Blumenkrantz 2012-07-04 08:42:29 +00:00
parent 1869a1bc64
commit 22392f1b60
2 changed files with 434 additions and 424 deletions

View File

@ -152,3 +152,4 @@ _basic_apply_data(E_Config_Dialog * cfd, E_Config_Dialog_Data * cfdata)
_forecasts_config_updated(ci);
return 1;
}

View File

@ -8,8 +8,8 @@
#define GOLDEN_RATIO 1.618033989
#define ENABLE_DEBUG 0
#define DEBUG(f, ...) if(ENABLE_DEBUG) printf("[forecasts] "f"\n", __VA_ARGS__)
#define DEBUG(f, ...) if (ENABLE_DEBUG) \
printf("[forecasts] "f "\n", __VA_ARGS__)
/* Gadcon Function Protos */
static E_Gadcon_Client *_gc_init(E_Gadcon *gc, const char *name,
@ -47,32 +47,39 @@ struct _Instance
Ecore_Event_Handler *del_handler;
Ecore_Event_Handler *data_handler;
struct {
struct
{
int temp, code;
char update[52];
char desc[256];
} condition;
struct {
struct
{
char temp, distance[3], pressure[3], speed[4];
} units;
struct {
struct {
struct
{
struct
{
int chill, direction, speed;
} wind;
struct {
struct
{
int humidity, rising;
float pressure, visibility;
} atmosphere;
struct {
struct
{
char sunrise[9], sunset[9];
} astronomy;
} details;
struct {
struct
{
char day[4];
char date[12];
int low, high, code;
@ -235,6 +242,7 @@ _gc_orient(E_Gadcon_Client * gcc, E_Gadcon_Orient orient)
e_gadcon_client_aspect_set(gcc, 240, 120);
e_gadcon_client_min_size_set(gcc, 240, 120);
break;
default:
edje_object_signal_emit(inst->forecasts_obj, "e,state,orientation,default", "e");
e_gadcon_client_aspect_set(gcc, 16, 16);
@ -1168,3 +1176,4 @@ _cb_mouse_out(void *data, Evas *e, Evas_Object *obj, void *event_info)
if (inst->popup->pinned) return;
e_gadcon_popup_hide(inst->popup);
}