]> git.tue.mpg.de Git - paraslash.git/commitdiff
Replace status item SELECTOR by IMAGE_ID.
authorAndre Noll <maan@systemlinux.org>
Tue, 23 Oct 2007 20:50:37 +0000 (22:50 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 23 Oct 2007 20:50:37 +0000 (22:50 +0200)
command.c
gui_theme.c
para.h
stat.c

index f1a0bd186e262d2443f4e34c171335b49f928a64..71b319981efa16f0a2a0a51aeb1e76e0023bd850 100644 (file)
--- a/command.c
+++ b/command.c
@@ -114,7 +114,7 @@ static char *get_status(struct misc_meta_data *nmmd)
        gettimeofday(&now, NULL);
        ret = make_message(
                "%s:%zu\n"      "%s:%s\n"               "%s:%lu\n"      "%s:%u\n"
-               "%s:%s\n"       "%s:%s\n"       "%s:%s\n"       "%s:%s\n"
+               "%s:%s\n"       "%s:%s\n"       "%s:%s\n"       "%s:%u\n"
                "%s:%li\n"      "%s:%s\n"       "%s:%s\n" "%s"
                "%s:%s\n"       "%s:%lu.%lu\n"  "%s:%lu.%lu\n" "%s:%s\n"
                "%s:%s\n",
@@ -126,7 +126,7 @@ static char *get_status(struct misc_meta_data *nmmd)
                status_item_list[SI_BASENAME], basename ? basename : "(none)",
                status_item_list[SI_STATUS], status,
                status_item_list[SI_STATUS_FLAGS], flags,
-               status_item_list[SI_SELECTOR], "FIXME",
+               status_item_list[SI_IMAGE_ID], nmmd->afd.afsi.image_id,
 
                status_item_list[SI_OFFSET], offset,
                status_item_list[SI_FORMAT], audio_format_name(nmmd->afd.afsi.audio_format_id),
index e7112b3fd796490c6b677b77ec722e57353a83b4..831bf8efbb1c1ded0326b62a76adf5e9c2c5636b 100644 (file)
@@ -137,14 +137,14 @@ static void init_theme_colorful_blackness(struct gui_theme *t)
        d[SI_STATUS_FLAGS].y = 17;
        d[SI_STATUS_FLAGS].len = 10;
 
-       d[SI_SELECTOR].prefix = "selector: ";
-       d[SI_SELECTOR].postfix = "";
-       d[SI_SELECTOR].fg = COLOR_RED;
-       d[SI_SELECTOR].bg = COLOR_BLACK;
-       d[SI_SELECTOR].align = CENTER;
-       d[SI_SELECTOR].x = 21;
-       d[SI_SELECTOR].y = 17;
-       d[SI_SELECTOR].len = 21;
+       d[SI_IMAGE_ID].prefix = "img: ";
+       d[SI_IMAGE_ID].postfix = "";
+       d[SI_IMAGE_ID].fg = COLOR_RED;
+       d[SI_IMAGE_ID].bg = COLOR_BLACK;
+       d[SI_IMAGE_ID].align = CENTER;
+       d[SI_IMAGE_ID].x = 21;
+       d[SI_IMAGE_ID].y = 17;
+       d[SI_IMAGE_ID].len = 21;
 
        d[SI_FORMAT].prefix = "format: ";
        d[SI_FORMAT].postfix = "";
diff --git a/para.h b/para.h
index 258f8b8d83eb75ad3db75107f08412e8c51feaca..52fe36994b0a42c0e8be999c93746a7e7f48ed59 100644 (file)
--- a/para.h
+++ b/para.h
@@ -168,7 +168,7 @@ enum {
        SI_DIRECTORY,           SI_DECODER_FLAGS,       SI_AUDIOD_STATUS,
        SI_PLAY_TIME,           SI_UPTIME,              SI_OFFSET,
        SI_LENGTH,              SI_STREAM_START,        SI_CURRENT_TIME,
-       SI_AUDIOD_UPTIME,       SI_SELECTOR,            NUM_STAT_ITEMS
+       SI_AUDIOD_UPTIME,       SI_IMAGE_ID,            NUM_STAT_ITEMS
 };
 
 int stat_item_valid(const char *item);
diff --git a/stat.c b/stat.c
index 3ba13b7e0d0f7655692e4421e80b30c97e1719a2..c447aceb4b73bc34f733079e067ebe82eb8cb500 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -79,7 +79,7 @@ const char *status_item_list[NUM_STAT_ITEMS] = {
        [SI_CURRENT_TIME] = "current_time",
 
        [SI_AUDIOD_UPTIME] = "audiod_uptime",
-       [SI_SELECTOR] = "dbtool"
+       [SI_IMAGE_ID] = "image_id"
 };
 
 static void dump_stat_client_list(void)