return TRUE;
}
-gboolean settings_dialog_hardkeys(GtkWidget * widget, GtkWidget * parent)
+gboolean
+settings_dialog_hardkeys(GtkWidget * widget, GtkWidget * parent)
{
gint i;
GtkWidget *dialog;
GtkWidget *col[COLORABLE_ENUM_COUNT];
};
-gboolean
+static gboolean
settings_dialog_colors_reset(GtkWidget * widget, ColorsDialogInfo * cdi)
{
GtkWidget *confirm;
return TRUE;
}
-gboolean settings_dialog_colors(GtkWidget * widget, GtkWidget * parent)
+static gboolean
+settings_dialog_colors(GtkWidget * widget, GtkWidget * parent)
{
GtkWidget *dialog;
GtkWidget *table;
* Bring up the Settings dialog. Return TRUE if and only if the recever
* information has changed (MAC or channel).
*/
-gboolean settings_dialog()
+gboolean
+settings_dialog(void)
{
GtkWidget *dialog;
GtkWidget *notebook;
}
#ifndef WITH_HILDON
- /* Destroying causes a crash (!?!?!??!) huh? in hildon only, plain gtk is ok so...*/
+ /* Destroying causes a crash (!?!?!??!) huh? in hildon (770?) only, plain gtk is ok...*/
gtk_widget_destroy(dialog);
#else
gtk_widget_hide(dialog);
#include "ui-common.h"
#include "db.h"
+#include "settings-gui.h"
+
/* Callbacks */
#include "cb.h"
static void toolbar_init(void)
{
-GtkWidget *item;
+GtkToolItem *item;
item = gtk_tool_button_new_from_stock (GTK_STOCK_HOME);
-gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
g_signal_connect (item, "clicked", G_CALLBACK (menu_cb_goto_home), NULL);
+gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
item = gtk_tool_button_new_from_stock (GTK_STOCK_JUMP_TO);
-gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
g_signal_connect (item, "clicked", G_CALLBACK (menu_cb_goto_gps), NULL);
+gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
item = gtk_tool_button_new_from_stock (GTK_STOCK_GO_FORWARD);
-gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
g_signal_connect (item, "clicked", G_CALLBACK (menu_cb_goto_nextway), NULL);
+gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
item = gtk_separator_tool_item_new();
gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
item = gtk_tool_button_new_from_stock (GTK_STOCK_ADD);
-gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
g_signal_connect (item, "clicked", G_CALLBACK (cb_add_poi), NULL);
+gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
item = gtk_separator_tool_item_new();
gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
item = gtk_tool_button_new_from_stock (GTK_STOCK_ZOOM_IN);
-gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
g_signal_connect (item, "clicked", G_CALLBACK (cb_zoomin), NULL);
+gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
item = gtk_tool_button_new_from_stock (GTK_STOCK_ZOOM_OUT);
-gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
g_signal_connect (item, "clicked", G_CALLBACK (cb_zoomout), NULL);
+gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
item = gtk_tool_button_new_from_stock (GTK_STOCK_ZOOM_100);
-gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
g_signal_connect (item, "clicked", G_CALLBACK (cb_zoom_base), NULL);
+gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
item = gtk_tool_button_new_from_stock (GTK_STOCK_ZOOM_FIT);
-gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
g_signal_connect (item, "clicked", G_CALLBACK (cb_zoom_autozoom), NULL);
+gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
item = gtk_separator_tool_item_new();
gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
#ifndef WITH_HILDON
_toolbar_fullscreen_item = gtk_toggle_tool_button_new_from_stock (GTK_STOCK_FULLSCREEN);
-gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), _toolbar_fullscreen_item, -1);
g_signal_connect (_toolbar_fullscreen_item, "clicked", G_CALLBACK (cb_fullscreen_click), NULL);
+gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), _toolbar_fullscreen_item, -1);
#endif
item = gtk_separator_tool_item_new();