GTK_RESPONSE_ACCEPT, NULL);
gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area),
- btn_defaults =
- gtk_button_new_with_label(_("Reset...")));
+ btn_defaults = gtk_button_new_with_label(_("Reset...")));
g_signal_connect(G_OBJECT(btn_defaults), "clicked",
G_CALLBACK(settings_dialog_hardkeys_reset), &bdi);
- gtk_dialog_add_button(GTK_DIALOG(dialog),
- GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT);
+ gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox),
table = gtk_table_new(2, 9, FALSE), TRUE, TRUE, 0);
gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area),
btn_buttons = gtk_button_new_with_label(_("Hardware Keys...")));
+ g_signal_connect(G_OBJECT(btn_buttons), "clicked", G_CALLBACK(settings_dialog_hardkeys), dialog);
#endif
gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area),
/* Connect signals. */
scan_info.settings_dialog = dialog;
scan_info.txt_rcvr_mac = txt_rcvr_mac;
- g_signal_connect(G_OBJECT(btn_scan), "clicked",
- G_CALLBACK(scan_bluetooth), &scan_info);
- g_signal_connect(G_OBJECT(btn_buttons), "clicked",
- G_CALLBACK(settings_dialog_hardkeys), dialog);
- g_signal_connect(G_OBJECT(btn_colors), "clicked",
- G_CALLBACK(settings_dialog_colors), dialog);
+ g_signal_connect(G_OBJECT(btn_scan), "clicked", G_CALLBACK(scan_bluetooth), &scan_info);
+ g_signal_connect(G_OBJECT(btn_colors), "clicked", G_CALLBACK(settings_dialog_colors), dialog);
browse_info.dialog = dialog;
browse_info.txt = txt_mapper_db;
- g_signal_connect(G_OBJECT(btn_browsedb), "clicked",
- G_CALLBACK(settings_dialog_browse_forfile),
- &browse_info);
+ g_signal_connect(G_OBJECT(btn_browsedb), "clicked", G_CALLBACK(settings_dialog_browse_forfile), &browse_info);
/* Initialize fields. */
if (_rcvr_mac)
gtk_entry_set_text(GTK_ENTRY(txt_rcvr_mac), _rcvr_mac);
+
if (_mapper_db)
gtk_entry_set_text(GTK_ENTRY(txt_mapper_db), _mapper_db);