patches/zenity-01-commandline.diff
author gf115653
Tue, 29 Aug 2006 01:11:21 +0000
changeset 8006 edfc798053bb
permissions -rw-r--r--
2006-08-29 Glynn Foster <[email protected]> * patches/zenity-01-commandline.diff, zenity.spec: Add new patch to fix up the commandlines. Have pushed it upstream.

diff -urN zenity-2.15.92/src/option.c zenity-2.15.92-hacked/src/option.c
--- zenity-2.15.92/src/option.c	2006-05-10 16:14:35.000000000 +1200
+++ zenity-2.15.92-hacked/src/option.c	2006-08-29 13:10:47.648817000 +1200
@@ -164,7 +164,7 @@
     G_OPTION_ARG_STRING,
     &zenity_general_dialog_text,
     N_("Set the dialog text"),
-    NULL
+    N_("TEXT")
   },
   {
     "day",
@@ -173,7 +173,7 @@
     G_OPTION_ARG_INT,
     &zenity_calendar_day,
     N_("Set the calendar day"),
-    NULL
+    N_("DAY")
   },
   {
     "month",
@@ -182,7 +182,7 @@
     G_OPTION_ARG_INT,
     &zenity_calendar_month,
     N_("Set the calendar month"),
-    NULL
+    N_("MONTH")
   },
   {
     "year",
@@ -191,7 +191,7 @@
     G_OPTION_ARG_INT,
     &zenity_calendar_year,
     N_("Set the calendar year"),
-    NULL
+    N_("YEAR")
   },
   {
     "date-format",
@@ -200,7 +200,7 @@
     G_OPTION_ARG_STRING,
     &zenity_calendar_date_format,
     N_("Set the format for the returned date"),
-    NULL
+    N_("PATTERN")
   },
   {
     NULL
@@ -224,7 +224,7 @@
     G_OPTION_ARG_STRING | G_OPTION_FLAG_NOALIAS,
     &zenity_general_dialog_text,
     N_("Set the dialog text"),
-    NULL
+    N_("TEXT")
   },
   {
     "entry-text",
@@ -233,7 +233,7 @@
     G_OPTION_ARG_STRING,
     &zenity_entry_entry_text,
     N_("Set the entry text"),
-    NULL
+    N_("TEXT")
   },
   {
     "hide-text",
@@ -242,7 +242,7 @@
     G_OPTION_ARG_NONE,
     &zenity_entry_hide_text,
     N_("Hide the entry text"),
-    NULL
+    N_("TEXT")
   },
   { 
     NULL 
@@ -267,7 +267,7 @@
     G_OPTION_ARG_STRING,
     &zenity_general_dialog_text,
     N_("Set the dialog text"),
-    NULL
+    N_("TEXT")
   },
   {
     "no-wrap",
@@ -300,7 +300,7 @@
     G_OPTION_ARG_STRING,
     &zenity_general_dialog_text,
     N_("Set the dialog text"),
-    NULL
+    N_("TEXT")
   },
   {
     "no-wrap",
@@ -402,7 +402,7 @@
     G_OPTION_ARG_STRING,
     &zenity_general_dialog_text,
     N_("Set the dialog text"),
-    NULL
+    N_("TEXT")
   },
   {
     "column",
@@ -411,7 +411,7 @@
     G_OPTION_ARG_STRING_ARRAY,
     &zenity_list_columns,
     N_("Set the column header"),
-    NULL
+    N_("COLUMN")
   },
   {
     "checklist",
@@ -465,7 +465,7 @@
     G_OPTION_ARG_STRING,
     &zenity_list_print_column,
     N_("Print a specific column (Default is 1. 'ALL' can be used to print all columns)"),
-    NULL
+    N_("NUMBER")
   },
   {
     "hide-column",
@@ -474,7 +474,7 @@
     G_OPTION_ARG_STRING,
     &zenity_list_hide_column,
     N_("Hide a specific column"),
-    NULL
+    N_("NUMBER")
   },
   { 
     NULL 
@@ -498,7 +498,7 @@
     G_OPTION_ARG_STRING,
     &zenity_general_dialog_text,
     N_("Set the notification text"),
-    NULL
+    N_("TEXT")
   },
   {
     "listen",
@@ -531,7 +531,7 @@
     G_OPTION_ARG_STRING,
     &zenity_general_dialog_text,
     N_("Set the dialog text"),
-    NULL
+    N_("TEXT")
   },
   {
     "percentage",
@@ -540,7 +540,7 @@
     G_OPTION_ARG_INT,
     &zenity_progress_percentage,
     N_("Set initial percentage"),
-    NULL
+    N_("PERCENTAGE")
   },
   {
     "pulsate",
@@ -583,7 +583,7 @@
     G_OPTION_ARG_STRING,
     &zenity_general_dialog_text,
     N_("Set the dialog text"),
-    NULL
+    N_("TEXT")
   },
   {
     "no-wrap",
@@ -649,7 +649,7 @@
     G_OPTION_ARG_STRING,
     &zenity_general_dialog_text,
     N_("Set the dialog text"),
-    NULL
+    N_("TEXT")
   },
   {
     "no-wrap",
@@ -682,7 +682,7 @@
     G_OPTION_ARG_STRING,
     &zenity_general_dialog_text,
     N_("Set the dialog text"),
-    NULL
+    N_("TEXT")
   },
   {
     "value",
@@ -691,7 +691,7 @@
     G_OPTION_ARG_INT,
     &zenity_scale_value,
     N_("Set initial value"),
-    NULL
+    N_("VALUE")
   },
   {
     "min-value",
@@ -700,7 +700,7 @@
     G_OPTION_ARG_INT,
     &zenity_scale_min_value,
     N_("Set minimum value"),
-    NULL
+    N_("VALUE")
   },
   {
     "max-value",
@@ -709,7 +709,7 @@
     G_OPTION_ARG_INT,
     &zenity_scale_max_value,
     N_("Set maximum value"),
-    NULL
+    N_("VALUE")
   },
   {
     "step",
@@ -718,7 +718,7 @@
     G_OPTION_ARG_INT,
     &zenity_scale_step,
     N_("Set step size"),
-    NULL
+    N_("VALUE")
   },
   {
     "print-partial",