request_navit_get_attr(DBusConnection *connection, DBusMessage *message)
{
struct navit *navit;
- DBusMessageIter iter, response;
+ DBusMessageIter iter;
char * attr_type = NULL;
struct attr attr;
navit = object_get_from_message(message, "navit");
if (attr.type > attr_type_item_begin && attr.type < attr_type_item_end)
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
- else if (attr.type > attr_type_int_begin && attr.type < attr_type_boolean_begin)
+ else if (attr.type > attr_type_int_begin && attr.type < attr_type_boolean_begin) {
if (dbus_message_iter_get_arg_type(&iterattr) == DBUS_TYPE_INT32)
{
dbus_message_iter_get_basic(&iterattr, &attr.u.num);
if (navit_set_attr(navit, &attr))
return empty_reply(connection, message);
}
-
- else if(attr.type > attr_type_boolean_begin && attr.type < attr_type_int_end)
+ }
+ else if(attr.type > attr_type_boolean_begin && attr.type < attr_type_int_end) {
if (dbus_message_iter_get_arg_type(&iterattr) == DBUS_TYPE_BOOLEAN)
{
dbus_message_iter_get_basic(&iterattr, &attr.u.num);
if (navit_set_attr(navit, &attr))
return empty_reply(connection, message);
}
-
+ }
#if 0
else if(attr.type > attr_type_string_begin && attr.type < attr_type_string_end)
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
static DBusHandlerResult
request_navit_evaluate(DBusConnection *connection, DBusMessage *message)
{
- struct pcoord pc;
struct navit *navit;
char *command;
char *result;
return NULL;
}
-
+#if 0
static struct graphics_image *
image_new_o(struct gui_priv *this, char *name)
{
return image_new_scaled(this, name, -1, -1);
}
+#endif
static struct graphics_image *
image_new_xs(struct gui_priv *this, char *name)
return gui_internal_button_new_with_callback(this, text, image, flags, NULL, NULL);
}
+#if 0
//##############################################################################################################
//# Description:
//# Comment:
pnt.y=0;
graphics_draw_rectangle(gra, this->background, &pnt, this->root.w, this->root.h);
}
+#endif
static struct widget *
gui_internal_find_widget(struct widget *wi, struct point *p, int flags)
static struct widget *
gui_internal_time_help(struct gui_priv *this)
{
- struct widget *w,*wm,*wh,*wc,*wcn;
- int dots_len, sep_len;
- GList *res=NULL,*l;
- int width,width_used=0,use_sep,incomplete=0;
+ struct widget *w,*wc,*wcn;
char timestr[64];
struct tm *tm;
time_t timep;
w->w=menu->w;
gui_internal_widget_append(menu, w);
if (this->flags & 16) {
- struct widget *wl,*wlb,*wb,*wm=w;
+ struct widget *wlb,*wb,*wm=w;
wm->flags=gravity_center|orientation_vertical|flags_expand|flags_fill;
w=gui_internal_box_new(this, gravity_center|orientation_horizontal|flags_expand|flags_fill);
dbg(0,"topbox->menu_data=%p\n", topbox->menu_data);
struct window *win;
struct color cbh={0x9fff,0x9fff,0x9fff,0xffff};
struct color cf={0xbfff,0xbfff,0xbfff,0xffff};
- struct color cw={0xffff,0xffff,0xffff,0xffff};
- struct color cbl={0x0000,0x0000,0x0000,0xffff};
struct transformation *trans=navit_get_trans(this->nav);
win=graphics_get_data(gra, "window");
};
static struct command_table commands[] = {
- {"menu",gui_internal_cmd_menu2},
- {"fullscreen",gui_internal_cmd_fullscreen},
- {"get_data",gui_internal_get_data},
+ {"menu",command_cast(gui_internal_cmd_menu2)},
+ {"fullscreen",command_cast(gui_internal_cmd_fullscreen)},
+ {"get_data",command_cast(gui_internal_get_data)},
};