Re: New string in gnome-control-center
- From: "Sergey V. Udaltsov" <svu gnome org>
- To: Christian Rose <menthos gnome org>
- Cc: GNOME I18N List <gnome-i18n gnome org>,GNOME Release Team <release-team gnome org>
- Subject: Re: New string in gnome-control-center
- Date: Thu, 26 Feb 2004 09:12:42 +0000
> We still need to see some patch to give approval.
Here it goes:
diff -r1.7 gnome-settings-keyboard-xkb.c
108a109,142
> static void
> gnome_settings_keyboard_xkb_check_local_xmodmap (void)
> {
> GDir *homeDir = g_dir_open (g_get_home_dir (), 0, NULL);
> G_CONST_RETURN gchar *fname;
> if (homeDir == NULL)
> return;
> while ((fname = g_dir_read_name (homeDir)) != NULL)
> if (g_str_has_prefix (fname, ".xmodmap")) {
> gchar *ffname =
> g_build_filename (g_get_home_dir (), fname);
> gchar *uffname =
> g_filename_to_utf8 (ffname, -1, NULL, NULL,
> NULL);
> g_free (ffname);
> GtkWidget *msg =
> gtk_message_dialog_new_with_markup (NULL, 0,
>
GTK_MESSAGE_ERROR,
>
GTK_BUTTONS_CLOSE,
> _
> ("An
xmodmap file (%s) was found.\n"
> "Its
content will be ignored because you have enabled XKB.\n"
> "Please
consider removing it, or disabling XKB."),
>
uffname);
> g_signal_connect (msg, "response",
> G_CALLBACK
(gtk_widget_destroy),
> NULL);
> gtk_widget_show (msg);
> g_free (uffname);
> break;
> }
> g_dir_close (homeDir);
> }
>
114a149
> gnome_settings_keyboard_xkb_check_local_xmodmap ();
Sergey
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]