diff options
Diffstat (limited to 'accessibility/gnopernicus')
3 files changed, 90 insertions, 0 deletions
diff --git a/accessibility/gnopernicus/files/patch-braille_libbrl_brlxml.c b/accessibility/gnopernicus/files/patch-braille_libbrl_brlxml.c new file mode 100644 index 000000000000..3a2d38735abb --- /dev/null +++ b/accessibility/gnopernicus/files/patch-braille_libbrl_brlxml.c @@ -0,0 +1,13 @@ +--- braille/libbrl/brlxml.c.orig Tue Aug 3 14:50:31 2004 ++++ braille/libbrl/brlxml.c Tue Aug 3 14:50:48 2004 +@@ -730,9 +730,9 @@ + /* fprintf (stderr, "\n attr_val; %s", *attrs); */ + if (g_strcasecmp ((gchar*)*attrs, "mode") == 0) + { +- ++attrs; + gint16 new_offset = 0; + gshort sign = 1; ++ ++attrs; + + attr_val = g_strdup ((gchar*)*attrs); + tattr_val = g_strdup (attr_val); diff --git a/accessibility/gnopernicus/files/patch-srcore_srbrl.c b/accessibility/gnopernicus/files/patch-srcore_srbrl.c new file mode 100644 index 000000000000..474f3f8049a4 --- /dev/null +++ b/accessibility/gnopernicus/files/patch-srcore_srbrl.c @@ -0,0 +1,51 @@ +--- srcore/srbrl.c.orig Wed Jul 14 20:51:31 2004 ++++ srcore/srbrl.c Wed Jul 14 20:55:57 2004 +@@ -723,6 +723,12 @@ + static void + src_braille_load_values (SRCBraille *braille) + { ++ gint default_pos_sensor; ++ gint default_opt_sensor; ++ gchar *default_braille_transaltion_table; ++ gchar *default_braille_style; ++ gchar *default_braille_cursor_style; ++ + sru_assert (braille); + + if (!braille->device) +@@ -749,7 +755,7 @@ + } + } + +- gchar *default_braille_transaltion_table = DEFAULT_BRAILLE_TRANSLATION; ++ *default_braille_transaltion_table = DEFAULT_BRAILLE_TRANSLATION; + GET_BRAILLE_CONFIG_DATA_WITH_DEFAULT (BRAILLE_TRANSLATION, CFGT_STRING, + &braille->translation_table, + default_braille_transaltion_table); +@@ -761,22 +767,22 @@ + } + + +- gchar *default_braille_style = DEFAULT_BRAILLE_STYLE; ++ *default_braille_style = DEFAULT_BRAILLE_STYLE; + GET_BRAILLE_CONFIG_DATA_WITH_DEFAULT (BRAILLE_STYLE, CFGT_STRING, + &braille->style, + default_braille_style); + +- gchar *default_braille_cursor_style = DEFAULT_BRAILLE_CURSOR_STYLE; ++ *default_braille_cursor_style = DEFAULT_BRAILLE_CURSOR_STYLE; + GET_BRAILLE_CONFIG_DATA_WITH_DEFAULT (BRAILLE_CURSOR_STYLE, CFGT_STRING, + &braille->cursor_style, + default_braille_cursor_style); + +- gint default_pos_sensor = DEFAULT_BRAILLE_POSITION_SENSOR; ++ default_pos_sensor = DEFAULT_BRAILLE_POSITION_SENSOR; + GET_BRAILLE_CONFIG_DATA_WITH_DEFAULT (BRAILLE_POSITION_SENSOR, CFGT_INT, + &braille->position_sensor, + &default_pos_sensor); + +- gint default_opt_sensor = DEFAULT_BRAILLE_OPTICAL_SENSOR; ++ default_opt_sensor = DEFAULT_BRAILLE_OPTICAL_SENSOR; + GET_BRAILLE_CONFIG_DATA_WITH_DEFAULT (BRAILLE_OPTICAL_SENSOR, CFGT_INT, + &braille->optical_sensor, + &default_opt_sensor); diff --git a/accessibility/gnopernicus/files/patch-srcore_srmain.c b/accessibility/gnopernicus/files/patch-srcore_srmain.c new file mode 100644 index 000000000000..7b113f5bad80 --- /dev/null +++ b/accessibility/gnopernicus/files/patch-srcore_srmain.c @@ -0,0 +1,26 @@ +--- srcore/srmain.c.orig Sun May 30 03:08:45 2004 ++++ srcore/srmain.c Sun May 30 03:09:28 2004 +@@ -602,9 +602,10 @@ + sru_assert (config->key); + if (strcmp (config->key, BRAILLE_DEVICE) == 0) + { ++ gboolean rv; + sru_assert (config->newvalue && config->type == CFGT_STRING); + +- gboolean rv = src_braille_set_device ((gchar*)config->newvalue); ++ rv = src_braille_set_device ((gchar*)config->newvalue); + if (!rv) + { + sru_message ("SR: process config changed for braille: brl_device did not change!!!"); +@@ -636,9 +637,10 @@ + } + else if (strcmp (config->key, BRAILLE_TRANSLATION) == 0) + { ++ gboolean rv; + sru_assert (config->type == CFGT_STRING && config->newvalue); + +- gboolean rv = src_braille_set_translation_table ((gchar*)config->newvalue); ++ rv = src_braille_set_translation_table ((gchar*)config->newvalue); + + if (!rv) + { |