Added some shortcuts in embedded mode
This commit is contained in:
parent
accda69815
commit
c55c497ebe
62
po/fr.po
62
po/fr.po
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Todo 0.0.0\n"
|
"Project-Id-Version: Todo 0.0.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2011-10-25 13:18+0200\n"
|
"POT-Creation-Date: 2012-01-05 21:12+0100\n"
|
||||||
"PO-Revision-Date: 2010-04-23 14:35+0200\n"
|
"PO-Revision-Date: 2010-04-23 14:35+0200\n"
|
||||||
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
|
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
|
||||||
"Language-Team: French\n"
|
"Language-Team: French\n"
|
||||||
|
@ -72,122 +72,122 @@ msgstr "Haute"
|
||||||
msgid "Urgent"
|
msgid "Urgent"
|
||||||
msgstr "Urgent"
|
msgstr "Urgent"
|
||||||
|
|
||||||
#: ../src/todo.c:112
|
#: ../src/todo.c:123
|
||||||
msgid "_New"
|
msgid "_New"
|
||||||
msgstr "_Nouvelle"
|
msgstr "_Nouvelle"
|
||||||
|
|
||||||
#: ../src/todo.c:114 ../src/todo.c:159
|
#: ../src/todo.c:125 ../src/todo.c:170
|
||||||
msgid "_Edit"
|
msgid "_Edit"
|
||||||
msgstr "Modifier"
|
msgstr "Modifier"
|
||||||
|
|
||||||
#: ../src/todo.c:117
|
#: ../src/todo.c:128
|
||||||
msgid "_Close"
|
msgid "_Close"
|
||||||
msgstr "_Fermer"
|
msgstr "_Fermer"
|
||||||
|
|
||||||
#: ../src/todo.c:123
|
#: ../src/todo.c:134
|
||||||
msgid "Select _all"
|
msgid "Select _all"
|
||||||
msgstr "Sélectionner _tout"
|
msgstr "Sélectionner _tout"
|
||||||
|
|
||||||
#: ../src/todo.c:131
|
#: ../src/todo.c:142
|
||||||
msgid "_Delete"
|
msgid "_Delete"
|
||||||
msgstr "_Supprimer"
|
msgstr "_Supprimer"
|
||||||
|
|
||||||
#: ../src/todo.c:133
|
#: ../src/todo.c:144
|
||||||
msgid "_Preferences"
|
msgid "_Preferences"
|
||||||
msgstr "_Préférences"
|
msgstr "_Préférences"
|
||||||
|
|
||||||
#: ../src/todo.c:139
|
#: ../src/todo.c:150
|
||||||
msgid "_All tasks"
|
msgid "_All tasks"
|
||||||
msgstr "_Toutes les tâches"
|
msgstr "_Toutes les tâches"
|
||||||
|
|
||||||
#: ../src/todo.c:140
|
#: ../src/todo.c:151
|
||||||
msgid "_Completed tasks"
|
msgid "_Completed tasks"
|
||||||
msgstr "Tâches _complétées"
|
msgstr "Tâches _complétées"
|
||||||
|
|
||||||
#: ../src/todo.c:142
|
#: ../src/todo.c:153
|
||||||
msgid "_Remaining tasks"
|
msgid "_Remaining tasks"
|
||||||
msgstr "Tâches _restantes"
|
msgstr "Tâches _restantes"
|
||||||
|
|
||||||
#: ../src/todo.c:148
|
#: ../src/todo.c:159
|
||||||
msgid "_About"
|
msgid "_About"
|
||||||
msgstr "À _propos"
|
msgstr "À _propos"
|
||||||
|
|
||||||
#: ../src/todo.c:158
|
#: ../src/todo.c:169
|
||||||
msgid "_File"
|
msgid "_File"
|
||||||
msgstr "_Fichier"
|
msgstr "_Fichier"
|
||||||
|
|
||||||
#: ../src/todo.c:160
|
#: ../src/todo.c:171
|
||||||
msgid "_View"
|
msgid "_View"
|
||||||
msgstr "_Vue"
|
msgstr "_Vue"
|
||||||
|
|
||||||
#: ../src/todo.c:161
|
#: ../src/todo.c:172
|
||||||
msgid "_Help"
|
msgid "_Help"
|
||||||
msgstr "_Aide"
|
msgstr "_Aide"
|
||||||
|
|
||||||
#: ../src/todo.c:169 ../src/todo.c:505
|
#: ../src/todo.c:180 ../src/todo.c:517
|
||||||
msgid "New task"
|
msgid "New task"
|
||||||
msgstr "Nouvelle tâche"
|
msgstr "Nouvelle tâche"
|
||||||
|
|
||||||
#: ../src/todo.c:170
|
#: ../src/todo.c:181
|
||||||
msgid "Edit task"
|
msgid "Edit task"
|
||||||
msgstr "Modifier la tâche"
|
msgstr "Modifier la tâche"
|
||||||
|
|
||||||
#: ../src/todo.c:173 ../src/todo.c:176
|
#: ../src/todo.c:184 ../src/todo.c:187
|
||||||
msgid "Select all"
|
msgid "Select all"
|
||||||
msgstr "Tout sélectionner"
|
msgstr "Tout sélectionner"
|
||||||
|
|
||||||
#: ../src/todo.c:179
|
#: ../src/todo.c:190
|
||||||
msgid "Delete task"
|
msgid "Delete task"
|
||||||
msgstr "Supprimer la tâche"
|
msgstr "Supprimer la tâche"
|
||||||
|
|
||||||
#: ../src/todo.c:183
|
#: ../src/todo.c:194
|
||||||
msgid "Preferences"
|
msgid "Preferences"
|
||||||
msgstr "Préférences"
|
msgstr "Préférences"
|
||||||
|
|
||||||
#: ../src/todo.c:229
|
#: ../src/todo.c:240
|
||||||
msgid "Todo"
|
msgid "Todo"
|
||||||
msgstr "Todo"
|
msgstr "Todo"
|
||||||
|
|
||||||
#: ../src/todo.c:240
|
#: ../src/todo.c:252
|
||||||
msgid "View as..."
|
msgid "View as..."
|
||||||
msgstr "Vue de..."
|
msgstr "Vue de..."
|
||||||
|
|
||||||
#: ../src/todo.c:244
|
#: ../src/todo.c:256
|
||||||
msgid "All tasks"
|
msgid "All tasks"
|
||||||
msgstr "Toutes les tâches"
|
msgstr "Toutes les tâches"
|
||||||
|
|
||||||
#: ../src/todo.c:248
|
#: ../src/todo.c:260
|
||||||
msgid "Completed tasks"
|
msgid "Completed tasks"
|
||||||
msgstr "Tâches complétées"
|
msgstr "Tâches complétées"
|
||||||
|
|
||||||
#: ../src/todo.c:252
|
#: ../src/todo.c:264
|
||||||
msgid "Remaining tasks"
|
msgid "Remaining tasks"
|
||||||
msgstr "Tâches restantes"
|
msgstr "Tâches restantes"
|
||||||
|
|
||||||
#: ../src/todo.c:362
|
#: ../src/todo.c:374
|
||||||
msgid "Priority"
|
msgid "Priority"
|
||||||
msgstr "Priorité"
|
msgstr "Priorité"
|
||||||
|
|
||||||
#: ../src/todo.c:428
|
#: ../src/todo.c:440
|
||||||
msgid "translator-credits"
|
msgid "translator-credits"
|
||||||
msgstr "Pierre Pronchery <khorben@defora.org>"
|
msgstr "Pierre Pronchery <khorben@defora.org>"
|
||||||
|
|
||||||
#: ../src/todo.c:458 ../src/todo.c:463
|
#: ../src/todo.c:470 ../src/todo.c:475
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr "Erreur"
|
msgstr "Erreur"
|
||||||
|
|
||||||
#: ../src/todo.c:558
|
#: ../src/todo.c:570
|
||||||
msgid "Are you sure you want to delete the selected task(s)?"
|
msgid "Are you sure you want to delete the selected task(s)?"
|
||||||
msgstr "Voulez-vous vraiment supprimer la sélection?"
|
msgstr "Voulez-vous vraiment supprimer la sélection?"
|
||||||
|
|
||||||
#: ../src/todo.c:647
|
#: ../src/todo.c:659
|
||||||
msgid "Time: "
|
msgid "Time: "
|
||||||
msgstr "Heure: "
|
msgstr "Heure: "
|
||||||
|
|
||||||
#: ../src/todo.c:656 ../src/todo.c:665
|
#: ../src/todo.c:668 ../src/todo.c:677
|
||||||
msgid ":"
|
msgid ":"
|
||||||
msgstr ":"
|
msgstr ":"
|
||||||
|
|
||||||
#: ../src/todo.c:1034 ../src/todo.c:1039
|
#: ../src/todo.c:1046 ../src/todo.c:1051
|
||||||
msgid "Question"
|
msgid "Question"
|
||||||
msgstr "Question"
|
msgstr "Question"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
/* Copyright (c) 2011 Pierre Pronchery <khorben@defora.org> */
|
/* Copyright (c) 2012 Pierre Pronchery <khorben@defora.org> */
|
||||||
/* This file is part of DeforaOS Desktop Todo */
|
/* This file is part of DeforaOS Desktop Todo */
|
||||||
/* This program is free software: you can redistribute it and/or modify
|
/* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -20,6 +20,13 @@
|
||||||
|
|
||||||
|
|
||||||
/* callbacks */
|
/* callbacks */
|
||||||
|
/* on_close */
|
||||||
|
void on_close(gpointer data)
|
||||||
|
{
|
||||||
|
on_closex();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* on_closex */
|
/* on_closex */
|
||||||
gboolean on_closex(void)
|
gboolean on_closex(void)
|
||||||
{
|
{
|
||||||
|
@ -32,7 +39,9 @@ gboolean on_closex(void)
|
||||||
/* on_file_close */
|
/* on_file_close */
|
||||||
void on_file_close(gpointer data)
|
void on_file_close(gpointer data)
|
||||||
{
|
{
|
||||||
on_closex();
|
Todo * todo = data;
|
||||||
|
|
||||||
|
on_close(todo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
/* Copyright (c) 2011 Pierre Pronchery <khorben@defora.org> */
|
/* Copyright (c) 2012 Pierre Pronchery <khorben@defora.org> */
|
||||||
/* This file is part of DeforaOS Desktop Todo */
|
/* This file is part of DeforaOS Desktop Todo */
|
||||||
/* This program is free software: you can redistribute it and/or modify
|
/* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
/* callbacks */
|
/* callbacks */
|
||||||
|
void on_close(gpointer data);
|
||||||
gboolean on_closex(void);
|
gboolean on_closex(void);
|
||||||
|
|
||||||
/* menus */
|
/* menus */
|
||||||
|
|
16
src/todo.c
16
src/todo.c
|
@ -1,6 +1,6 @@
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
static char _copyright[] =
|
static char _copyright[] =
|
||||||
"Copyright (c) 2011 Pierre Pronchery <khorben@defora.org>";
|
"Copyright (c) 2012 Pierre Pronchery <khorben@defora.org>";
|
||||||
/* This file is part of DeforaOS Desktop Todo */
|
/* This file is part of DeforaOS Desktop Todo */
|
||||||
static char const _license[] =
|
static char const _license[] =
|
||||||
"This program is free software: you can redistribute it and/or modify\n"
|
"This program is free software: you can redistribute it and/or modify\n"
|
||||||
|
@ -98,13 +98,24 @@ static const struct
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* variables */
|
|
||||||
static char const * _authors[] =
|
static char const * _authors[] =
|
||||||
{
|
{
|
||||||
"Pierre Pronchery <khorben@defora.org>",
|
"Pierre Pronchery <khorben@defora.org>",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* accelerators */
|
||||||
|
static const DesktopAccel _todo_accel[] =
|
||||||
|
{
|
||||||
|
#ifdef EMBEDDED
|
||||||
|
{ G_CALLBACK(on_close), GDK_CONTROL_MASK, GDK_KEY_W },
|
||||||
|
{ G_CALLBACK(on_edit), GDK_CONTROL_MASK, GDK_KEY_E },
|
||||||
|
{ G_CALLBACK(on_new), GDK_CONTROL_MASK, GDK_KEY_N },
|
||||||
|
{ G_CALLBACK(on_preferences), GDK_CONTROL_MASK, GDK_KEY_P },
|
||||||
|
#endif
|
||||||
|
{ NULL, 0, 0 }
|
||||||
|
};
|
||||||
|
|
||||||
#ifndef EMBEDDED
|
#ifndef EMBEDDED
|
||||||
/* menubar */
|
/* menubar */
|
||||||
static const DesktopMenu _file_menu[] =
|
static const DesktopMenu _file_menu[] =
|
||||||
|
@ -230,6 +241,7 @@ Todo * todo_new(void)
|
||||||
g_signal_connect_swapped(G_OBJECT(todo->window), "delete-event",
|
g_signal_connect_swapped(G_OBJECT(todo->window), "delete-event",
|
||||||
G_CALLBACK(on_closex), NULL);
|
G_CALLBACK(on_closex), NULL);
|
||||||
vbox = gtk_vbox_new(FALSE, 0);
|
vbox = gtk_vbox_new(FALSE, 0);
|
||||||
|
desktop_accel_create(_todo_accel, todo, group);
|
||||||
#ifndef EMBEDDED
|
#ifndef EMBEDDED
|
||||||
/* menubar */
|
/* menubar */
|
||||||
widget = desktop_menubar_create(_menubar, todo, group);
|
widget = desktop_menubar_create(_menubar, todo, group);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user