[pango] Hide pango-view --pangorc



commit f148ea6ecd22f56c0801bf187cdbca2cf1d2d8fe
Author: Behdad Esfahbod <behdad behdad org>
Date:   Thu Apr 23 14:23:32 2015 -0700

    Hide pango-view --pangorc

 pango-view/viewer-render.c |    4 ++--
 pango-view/viewer-render.h |    1 -
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/pango-view/viewer-render.c b/pango-view/viewer-render.c
index 89800ff..519a0e1 100644
--- a/pango-view/viewer-render.c
+++ b/pango-view/viewer-render.c
@@ -60,7 +60,7 @@ PangoGravityHint opt_gravity_hint = PANGO_GRAVITY_HINT_NATURAL;
 HintMode opt_hinting = HINT_DEFAULT;
 PangoWrapMode opt_wrap = PANGO_WRAP_WORD_CHAR;
 gboolean opt_wrap_set = FALSE;
-const char *opt_pangorc = NULL;
+static const char *opt_pangorc = NULL; /* Unused */
 const PangoViewer *opt_viewer = NULL;
 const char *opt_language = NULL;
 gboolean opt_single_par = FALSE;
@@ -712,7 +712,7 @@ parse_options (int argc, char *argv[])
      "Interpret text as Pango markup",                                 NULL},
     {"output",         'o', 0, G_OPTION_ARG_STRING,                    &opt_output,
      "Save rendered image to output file",                           "file"},
-    {"pangorc",                0, 0, G_OPTION_ARG_STRING,                      &opt_pangorc,
+    {"pangorc",                0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING,   &opt_pangorc,
      "Deprecated",                   "file"},
     {"pixels",         0, 0, G_OPTION_ARG_NONE,                        &opt_pixels,
      "Use pixel units instead of points (sets dpi to 72)",             NULL},
diff --git a/pango-view/viewer-render.h b/pango-view/viewer-render.h
index 9598054..ade2298 100644
--- a/pango-view/viewer-render.h
+++ b/pango-view/viewer-render.h
@@ -71,7 +71,6 @@ extern gboolean opt_waterfall;
 extern int opt_width;
 extern int opt_indent;
 extern PangoEllipsizeMode opt_ellipsize;
-extern const char *opt_pangorc;
 
 /* handled by viewer-main.c */
 extern gboolean opt_display;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]