check-icon-names: Check for legacy names again

Keep checking the legacy icon names as long as we support them
(this caught gtk-undelete not working quite as expected).
This commit is contained in:
Matthias Clasen 2014-09-21 23:14:56 -04:00
parent 61de42a731
commit 7ead9d45de

View File

@ -7,13 +7,13 @@ static char *icon_names[] = {
"dialog-information", "dialog-information",
"dialog-question", "dialog-question",
"dialog-warning", "dialog-warning",
/* "gtk-dnd", */ "gtk-dnd", /* internal icon */
/* "gtk-dnd-multiple", */ "gtk-dnd-multiple", /* internal icon */
/* "gtk-apply", */ "gtk-apply", /* deprecated stock id */
/* "gtk-cancel", */ "gtk-cancel", /* deprecated stock id */
/* "gtk-no", */ "gtk-no", /* deprecated stock id */
/* "gtk-ok", */ "gtk-ok", /* deprecated stock id */
/* "gtk-yes", */ "gtk-yes", /* deprecated stock id */
"window-close", "window-close",
"list-add", "list-add",
"format-justify-center", "format-justify-center",
@ -22,14 +22,14 @@ static char *icon_names[] = {
"format-justify-right", "format-justify-right",
"go-bottom", "go-bottom",
"media-optical", "media-optical",
/* "gtk-convert", */ "gtk-convert", /* deprecated stock id */
"edit-copy", "edit-copy",
"edit-cut", "edit-cut",
"go-down", "go-down",
"system-run", "system-run",
"application-exit", "application-exit",
"go-first", "go-first",
/* "gtk-select-font", */ "gtk-select-font", /* deprecated stock id */
"view-fullscreen", "view-fullscreen",
"view-restore", "view-restore",
"drive-harddisk", "drive-harddisk",
@ -43,17 +43,17 @@ static char *icon_names[] = {
"network-idle", "network-idle",
"document-new", "document-new",
"document-open", "document-open",
/* "gtk-orientation-portrait", */ "gtk-orientation-portrait", /* internal icon */
/* "gtk-orientation-landscape", */ "gtk-orientation-landscape", /* internal icon */
/* "gtk-orientation-reverse-portrait", */ "gtk-orientation-reverse-portrait", /* internal icon */
/* "gtk-orientation-reverse-landscape", */ "gtk-orientation-reverse-landscape", /* internal icon */
/* "gtk-page-setup", */ "gtk-page-setup", /* internal icon */
"edit-paste", "edit-paste",
/* "gtk-preferences", */ "gtk-preferences", /* deprecated stock id */
"document-print", "document-print",
"document-print-preview",
"printer-error", "printer-error",
/* "printer-paused", */ /* "printer-paused", */
"document-print-preview",
/* "printer-info", */ /* "printer-info", */
/* "printer-warning", */ /* "printer-warning", */
"document-properties", "document-properties",
@ -79,16 +79,16 @@ static char *icon_names[] = {
"format-indent-less", "format-indent-less",
"go-top", "go-top",
"edit-delete", "edit-delete",
/* "gtk-undelete", */ "gtk-undelete", /* deprecated stock id */
"edit-undo", "edit-undo",
"go-up", "go-up",
"text-x-generic", "text-x-generic",
"folder", "folder",
"help-about", "help-about",
/* "gtk-connect", */ "gtk-connect", /* deprecated stock id */
/* "gtk-disconnect", */ "gtk-disconnect", /* deprecated stock id */
/* "gtk-edit", */ "gtk-edit", /* deprecated stock id */
/* "gtk-caps-lock-warning", */ "gtk-caps-lock-warning", /* internal icon */
"media-seek-forward", "media-seek-forward",
"media-skip-forward", "media-skip-forward",
"media-playback-pause", "media-playback-pause",
@ -97,15 +97,15 @@ static char *icon_names[] = {
"media-record", "media-record",
"media-seek-backward", "media-seek-backward",
"media-playback-stop", "media-playback-stop",
/* "gtk-index", */ "gtk-index", /* deprecated stock id */
"zoom-original", "zoom-original",
"zoom-in", "zoom-in",
"zoom-out", "zoom-out",
"zoom-fit-best", "zoom-fit-best",
"edit-select-all", "edit-select-all",
"edit-clear", "edit-clear",
/* "gtk-select-color", */ "gtk-select-color", /* deprecated stock id */
/* "gtk-color-picker" */ "gtk-color-picker", /* deprecated stock id */
/*** Icons used in code or templates, sorted alphabetically ***/ /*** Icons used in code or templates, sorted alphabetically ***/
"audio-volume-high", "audio-volume-high",
@ -148,7 +148,7 @@ test_icon_existence (gconstpointer icon_name)
* icon theme. * icon theme.
* The icon size is randomly chosen. * The icon size is randomly chosen.
*/ */
info = gtk_icon_theme_lookup_icon (gtk_icon_theme_get_default (), icon_name, 16, 0); info = gtk_icon_theme_lookup_icon (gtk_icon_theme_get_default (), icon_name, 16, GTK_ICON_LOOKUP_DIR_LTR);
if (info == NULL) if (info == NULL)
{ {
g_test_message ("Failed to look up icon for \"%s\"", (char *) icon_name); g_test_message ("Failed to look up icon for \"%s\"", (char *) icon_name);