comparison src/gtkutil.c @ 84560:c390b9af2601

(xg_separator_p) <separator_names>: Move to file scope.
author Glenn Morris <rgm@gnu.org>
date Fri, 14 Sep 2007 07:36:26 +0000
parents d72079d7688e
children 6aa198cbc91e
comparison
equal deleted inserted replaced
84559:acac15277b75 84560:c390b9af2601
1888 } 1888 }
1889 1889
1890 /* Return non-zero if LABEL specifies a separator (GTK only has one 1890 /* Return non-zero if LABEL specifies a separator (GTK only has one
1891 separator type) */ 1891 separator type) */
1892 1892
1893 static char* separator_names[] = {
1894 "space",
1895 "no-line",
1896 "single-line",
1897 "double-line",
1898 "single-dashed-line",
1899 "double-dashed-line",
1900 "shadow-etched-in",
1901 "shadow-etched-out",
1902 "shadow-etched-in-dash",
1903 "shadow-etched-out-dash",
1904 "shadow-double-etched-in",
1905 "shadow-double-etched-out",
1906 "shadow-double-etched-in-dash",
1907 "shadow-double-etched-out-dash",
1908 0,
1909 };
1910
1893 static int 1911 static int
1894 xg_separator_p (char *label) 1912 xg_separator_p (char *label)
1895 { 1913 {
1896 if (! label) return 0; 1914 if (! label) return 0;
1897 else if (strlen (label) > 3 1915 else if (strlen (label) > 3
1898 && strncmp (label, "--", 2) == 0 1916 && strncmp (label, "--", 2) == 0
1899 && label[2] != '-') 1917 && label[2] != '-')
1900 { 1918 {
1901 static char* separator_names[] = {
1902 "space",
1903 "no-line",
1904 "single-line",
1905 "double-line",
1906 "single-dashed-line",
1907 "double-dashed-line",
1908 "shadow-etched-in",
1909 "shadow-etched-out",
1910 "shadow-etched-in-dash",
1911 "shadow-etched-out-dash",
1912 "shadow-double-etched-in",
1913 "shadow-double-etched-out",
1914 "shadow-double-etched-in-dash",
1915 "shadow-double-etched-out-dash",
1916 0,
1917 };
1918
1919 int i; 1919 int i;
1920 1920
1921 label += 2; 1921 label += 2;
1922 for (i = 0; separator_names[i]; ++i) 1922 for (i = 0; separator_names[i]; ++i)
1923 if (strcmp (label, separator_names[i]) == 0) 1923 if (strcmp (label, separator_names[i]) == 0)