comparison src/xs_config.c @ 579:6b2c682cc0a8

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 20 Mar 2007 20:10:04 +0000
parents d9290bd40037
children f58eb35438c6
comparison
equal deleted inserted replaced
578:d9290bd40037 579:6b2c682cc0a8
656 XS_MUTEX_UNLOCK(xs_cfg); 656 XS_MUTEX_UNLOCK(xs_cfg);
657 gtk_widget_show(xs_sldb_fileselector); 657 gtk_widget_show(xs_sldb_fileselector);
658 } 658 }
659 659
660 660
661 void xs_cfg_sldb_fs_ok(void) 661 void xs_cfg_sldb_fs_ok(GtkButton *button, gpointer user_data)
662 { 662 {
663 (void) button;
664 (void) user_data;
665
663 /* Selection was accepted! */ 666 /* Selection was accepted! */
664 gtk_entry_set_text(GTK_ENTRY(LUW("cfg_sld_dbpath")), 667 gtk_entry_set_text(GTK_ENTRY(LUW("cfg_sld_dbpath")),
665 gtk_file_selection_get_filename(GTK_FILE_SELECTION(xs_sldb_fileselector))); 668 gtk_file_selection_get_filename(GTK_FILE_SELECTION(xs_sldb_fileselector)));
666 669
667 /* Close file selector window */ 670 /* Close file selector window */
668 gtk_widget_destroy(xs_sldb_fileselector); 671 gtk_widget_destroy(xs_sldb_fileselector);
669 xs_sldb_fileselector = NULL; 672 xs_sldb_fileselector = NULL;
670 } 673 }
671 674
672 675
673 void xs_cfg_sldb_fs_cancel(void) 676 void xs_cfg_sldb_fs_cancel(GtkButton *button, gpointer user_data)
674 { 677 {
678 (void) button;
679 (void) user_data;
675 /* Close file selector window */ 680 /* Close file selector window */
676 gtk_widget_destroy(xs_sldb_fileselector); 681 gtk_widget_destroy(xs_sldb_fileselector);
677 xs_sldb_fileselector = NULL; 682 xs_sldb_fileselector = NULL;
678 } 683 }
679 684
696 XS_MUTEX_UNLOCK(xs_cfg); 701 XS_MUTEX_UNLOCK(xs_cfg);
697 gtk_widget_show(xs_stil_fileselector); 702 gtk_widget_show(xs_stil_fileselector);
698 } 703 }
699 704
700 705
701 void xs_cfg_stil_fs_ok(void) 706 void xs_cfg_stil_fs_ok(GtkButton *button, gpointer user_data)
702 { 707 {
708 (void) button;
709 (void) user_data;
710
703 /* Selection was accepted! */ 711 /* Selection was accepted! */
704 gtk_entry_set_text(GTK_ENTRY(LUW("cfg_stil_dbpath")), 712 gtk_entry_set_text(GTK_ENTRY(LUW("cfg_stil_dbpath")),
705 gtk_file_selection_get_filename(GTK_FILE_SELECTION(xs_stil_fileselector))); 713 gtk_file_selection_get_filename(GTK_FILE_SELECTION(xs_stil_fileselector)));
706 714
707 /* Close file selector window */ 715 /* Close file selector window */
708 gtk_widget_destroy(xs_stil_fileselector); 716 gtk_widget_destroy(xs_stil_fileselector);
709 xs_stil_fileselector = NULL; 717 xs_stil_fileselector = NULL;
710 } 718 }
711 719
712 720
713 void xs_cfg_stil_fs_cancel(void) 721 void xs_cfg_stil_fs_cancel(GtkButton *button, gpointer user_data)
714 { 722 {
723 (void) button;
724 (void) user_data;
725
715 /* Close file selector window */ 726 /* Close file selector window */
716 gtk_widget_destroy(xs_stil_fileselector); 727 gtk_widget_destroy(xs_stil_fileselector);
717 xs_stil_fileselector = NULL; 728 xs_stil_fileselector = NULL;
718 } 729 }
719 730
736 XS_MUTEX_UNLOCK(xs_cfg); 747 XS_MUTEX_UNLOCK(xs_cfg);
737 gtk_widget_show(xs_hvsc_pathselector); 748 gtk_widget_show(xs_hvsc_pathselector);
738 } 749 }
739 750
740 751
741 void xs_cfg_hvsc_fs_ok(void) 752 void xs_cfg_hvsc_fs_ok(GtkButton *button, gpointer user_data)
742 { 753 {
754 (void) button;
755 (void) user_data;
756
743 /* Selection was accepted! */ 757 /* Selection was accepted! */
744 gtk_entry_set_text(GTK_ENTRY(LUW("cfg_hvsc_path")), 758 gtk_entry_set_text(GTK_ENTRY(LUW("cfg_hvsc_path")),
745 gtk_file_selection_get_filename(GTK_FILE_SELECTION(xs_hvsc_pathselector))); 759 gtk_file_selection_get_filename(GTK_FILE_SELECTION(xs_hvsc_pathselector)));
746 760
747 /* Close file selector window */ 761 /* Close file selector window */
748 gtk_widget_destroy(xs_hvsc_pathselector); 762 gtk_widget_destroy(xs_hvsc_pathselector);
749 xs_hvsc_pathselector = NULL; 763 xs_hvsc_pathselector = NULL;
750 } 764 }
751 765
752 766
753 void xs_cfg_hvsc_fs_cancel(void) 767 void xs_cfg_hvsc_fs_cancel(GtkButton *button, gpointer user_data)
754 { 768 {
769 (void) button;
770 (void) user_data;
771
755 /* Close file selector window */ 772 /* Close file selector window */
756 gtk_widget_destroy(xs_hvsc_pathselector); 773 gtk_widget_destroy(xs_hvsc_pathselector);
757 xs_hvsc_pathselector = NULL; 774 xs_hvsc_pathselector = NULL;
758 } 775 }
759 776
998 */ 1015 */
999 void xs_configure(void) 1016 void xs_configure(void)
1000 { 1017 {
1001 gint i; 1018 gint i;
1002 gfloat tmpValue; 1019 gfloat tmpValue;
1003 gchar tmpStr[32]; 1020 gchar tmpStr[64];
1004 GtkWidget *tmpCurve; 1021 GtkWidget *tmpCurve;
1005 1022
1006 /* Check if the window already exists */ 1023 /* Check if the window already exists */
1007 if (xs_configwin) { 1024 if (xs_configwin) {
1008 gdk_window_raise(xs_configwin->window); 1025 gdk_window_raise(xs_configwin->window);