comparison Plugins/General/scrobbler/xmms_scrobbler.c @ 1176:6549a4c58e15 trunk

[svn] - grr
author nenolod
date Sun, 11 Jun 2006 20:29:00 -0700
parents c8cf439179b8
children 1eef4fd1aeb5
comparison
equal deleted inserted replaced
1175:d03157b6b5dd 1176:6549a4c58e15
1 #include <glib.h>
2 #include <glib/gi18n.h>
3
4 #include <gdk/gdkkeysyms.h>
5 #include <gtk/gtk.h>
6
1 #include <audacious/plugin.h> 7 #include <audacious/plugin.h>
8 #include <audacious/prefswin.h>
2 #include <libaudacious/configdb.h> 9 #include <libaudacious/configdb.h>
3 #include <libaudacious/beepctrl.h> 10 #include <libaudacious/beepctrl.h>
4
5 #include <glib.h>
6 #include <glib/gi18n.h>
7 11
8 #include <unistd.h> 12 #include <unistd.h>
9 #include <stdio.h> 13 #include <stdio.h>
10 #include <stdlib.h> 14 #include <stdlib.h>
11 #include <string.h> 15 #include <string.h>
43 NULL, 47 NULL,
44 -1, 48 -1,
45 NULL, 49 NULL,
46 init, 50 init,
47 about_show, 51 about_show,
48 configure_dialog, 52 NULL,
49 cleanup 53 cleanup
50 }; 54 };
51 55
52 static void init(void) 56 static void init(void)
53 { 57 {
54 char *username = NULL, *password = NULL; 58 char *username = NULL, *password = NULL;
55 ConfigDb *cfgfile; 59 ConfigDb *cfgfile;
56 going = 1; 60 going = 1;
57 GError **moo = NULL; 61 GError **moo = NULL;
62 GtkDialog *cfgdlg = create_cfgdlg();
63
64 prefswin_page_new(cfgdlg, "Last.FM Client", IMAGES_DIR "audioscrobbler.png");
58 65
59 if ((cfgfile = bmp_cfg_db_open()) != NULL) { 66 if ((cfgfile = bmp_cfg_db_open()) != NULL) {
60 bmp_cfg_db_get_string(cfgfile, "audioscrobbler", "username", 67 bmp_cfg_db_get_string(cfgfile, "audioscrobbler", "username",
61 &username); 68 &username);
62 bmp_cfg_db_get_string(cfgfile, "audioscrobbler", "password", 69 bmp_cfg_db_get_string(cfgfile, "audioscrobbler", "password",