Preparing for migration to Gtk+ 3.0
This commit is contained in:
parent
16098aa540
commit
d439eed9e8
152
po/fr.po
152
po/fr.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Phone 0.0.0\n"
|
"Project-Id-Version: Phone 0.0.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2011-04-10 17:29+0200\n"
|
"POT-Creation-Date: 2011-04-16 03:12+0200\n"
|
||||||
"PO-Revision-Date: 2010-04-24 02:07+0200\n"
|
"PO-Revision-Date: 2010-04-24 02:07+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"
|
||||||
@ -211,301 +211,301 @@ msgstr ""
|
|||||||
" -r\tDélai entre deux tentatives d'accès au modem (ms)\n"
|
" -r\tDélai entre deux tentatives d'accès au modem (ms)\n"
|
||||||
" -F\tActiver le contrôle de flux matériel (RTS/CTS)\n"
|
" -F\tActiver le contrôle de flux matériel (RTS/CTS)\n"
|
||||||
|
|
||||||
#: ../src/phone.c:388
|
#: ../src/phone.c:389
|
||||||
msgid "Initializing..."
|
msgid "Initializing..."
|
||||||
msgstr "Initialisation..."
|
msgstr "Initialisation..."
|
||||||
|
|
||||||
#: ../src/phone.c:439 ../src/phone.c:2233
|
#: ../src/phone.c:440 ../src/phone.c:2246
|
||||||
msgid "System preferences"
|
msgid "System preferences"
|
||||||
msgstr "Préférences système"
|
msgstr "Préférences système"
|
||||||
|
|
||||||
#: ../src/phone.c:450 ../src/phone.c:1816
|
#: ../src/phone.c:451 ../src/phone.c:1829
|
||||||
msgid "Plug-ins"
|
msgid "Plug-ins"
|
||||||
msgstr "Greffons"
|
msgstr "Greffons"
|
||||||
|
|
||||||
#: ../src/phone.c:601
|
#: ../src/phone.c:602
|
||||||
msgid "Checking SIM PIN code..."
|
msgid "Checking SIM PIN code..."
|
||||||
msgstr "Vérification du code SIM PIN..."
|
msgstr "Vérification du code SIM PIN..."
|
||||||
|
|
||||||
#: ../src/phone.c:653
|
#: ../src/phone.c:654
|
||||||
msgid "Delete this contact?"
|
msgid "Delete this contact?"
|
||||||
msgstr "Supprimer ce contact?"
|
msgstr "Supprimer ce contact?"
|
||||||
|
|
||||||
#: ../src/phone.c:1025 ../src/phone.c:1141
|
#: ../src/phone.c:1035 ../src/phone.c:1151
|
||||||
msgid "Delete this message?"
|
msgid "Delete this message?"
|
||||||
msgstr "Supprimer ce message?"
|
msgstr "Supprimer ce message?"
|
||||||
|
|
||||||
#: ../src/phone.c:1031 ../src/phone.c:1146
|
#: ../src/phone.c:1041 ../src/phone.c:1156
|
||||||
msgid "Deleting message..."
|
msgid "Deleting message..."
|
||||||
msgstr "Suppression du message..."
|
msgstr "Suppression du message..."
|
||||||
|
|
||||||
#: ../src/phone.c:1242
|
#: ../src/phone.c:1252
|
||||||
msgid "Unknown contact"
|
msgid "Unknown contact"
|
||||||
msgstr "Contact inconnu"
|
msgstr "Contact inconnu"
|
||||||
|
|
||||||
#: ../src/phone.c:1249
|
#: ../src/phone.c:1259
|
||||||
msgid "Unknown number"
|
msgid "Unknown number"
|
||||||
msgstr "Numéro inconnu"
|
msgstr "Numéro inconnu"
|
||||||
|
|
||||||
#: ../src/phone.c:1261
|
#: ../src/phone.c:1271
|
||||||
msgid "In conversation"
|
msgid "In conversation"
|
||||||
msgstr "En conversation"
|
msgstr "En conversation"
|
||||||
|
|
||||||
#: ../src/phone.c:1273
|
#: ../src/phone.c:1283
|
||||||
msgid "Incoming call"
|
msgid "Incoming call"
|
||||||
msgstr "Appel entrant"
|
msgstr "Appel entrant"
|
||||||
|
|
||||||
#: ../src/phone.c:1284
|
#: ../src/phone.c:1294
|
||||||
msgid "Outgoing call"
|
msgid "Outgoing call"
|
||||||
msgstr "Appel sortant"
|
msgstr "Appel sortant"
|
||||||
|
|
||||||
#: ../src/phone.c:1296
|
#: ../src/phone.c:1306
|
||||||
msgid "Call finished"
|
msgid "Call finished"
|
||||||
msgstr "Appel terminé"
|
msgstr "Appel terminé"
|
||||||
|
|
||||||
#: ../src/phone.c:1326
|
#: ../src/phone.c:1336
|
||||||
msgid "Answer"
|
msgid "Answer"
|
||||||
msgstr "Répondre"
|
msgstr "Répondre"
|
||||||
|
|
||||||
#: ../src/phone.c:1331
|
#: ../src/phone.c:1341
|
||||||
msgid "Hangup"
|
msgid "Hangup"
|
||||||
msgstr "Raccrocher"
|
msgstr "Raccrocher"
|
||||||
|
|
||||||
#: ../src/phone.c:1336
|
#: ../src/phone.c:1346
|
||||||
msgid "Reject"
|
msgid "Reject"
|
||||||
msgstr "Rejeter"
|
msgstr "Rejeter"
|
||||||
|
|
||||||
#: ../src/phone.c:1356
|
#: ../src/phone.c:1366
|
||||||
msgid "Loudspeaker"
|
msgid "Loudspeaker"
|
||||||
msgstr "Haut-parleur"
|
msgstr "Haut-parleur"
|
||||||
|
|
||||||
#: ../src/phone.c:1364
|
#: ../src/phone.c:1374
|
||||||
msgid "Mute microphone"
|
msgid "Mute microphone"
|
||||||
msgstr "Couper le microphone"
|
msgstr "Couper le microphone"
|
||||||
|
|
||||||
#: ../src/phone.c:1398 ../src/phone.c:1400
|
#: ../src/phone.c:1408 ../src/phone.c:1410
|
||||||
msgid "Enter SIM PIN code"
|
msgid "Enter SIM PIN code"
|
||||||
msgstr "Entrer le code SIM PIN"
|
msgstr "Entrer le code SIM PIN"
|
||||||
|
|
||||||
#: ../src/phone.c:1442
|
#: ../src/phone.c:1452
|
||||||
msgid "Enter"
|
msgid "Enter"
|
||||||
msgstr "Entrer"
|
msgstr "Entrer"
|
||||||
|
|
||||||
#: ../src/phone.c:1444
|
#: ../src/phone.c:1454
|
||||||
msgid "Skip"
|
msgid "Skip"
|
||||||
msgstr "Ignorer"
|
msgstr "Ignorer"
|
||||||
|
|
||||||
#: ../src/phone.c:1472
|
#: ../src/phone.c:1482
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "Contacts"
|
msgstr "Contacts"
|
||||||
|
|
||||||
#: ../src/phone.c:1478 ../src/phone.c:1586 ../src/phone.c:1622
|
#: ../src/phone.c:1488 ../src/phone.c:1599 ../src/phone.c:1635
|
||||||
#: ../src/phone.c:1712 ../src/phone.c:2070
|
#: ../src/phone.c:1725 ../src/phone.c:2083
|
||||||
msgid "Call"
|
msgid "Call"
|
||||||
msgstr "Appeler"
|
msgstr "Appeler"
|
||||||
|
|
||||||
#: ../src/phone.c:1484
|
#: ../src/phone.c:1494
|
||||||
msgid "Write"
|
msgid "Write"
|
||||||
msgstr "Écrire"
|
msgstr "Écrire"
|
||||||
|
|
||||||
#: ../src/phone.c:1518 ../src/phone.c:1847 ../src/phone.c:2181
|
#: ../src/phone.c:1528 ../src/phone.c:1860 ../src/phone.c:2194
|
||||||
msgid "Name"
|
msgid "Name"
|
||||||
msgstr "Nom"
|
msgstr "Nom"
|
||||||
|
|
||||||
#: ../src/phone.c:1564
|
#: ../src/phone.c:1574
|
||||||
msgid "Dialer"
|
msgid "Dialer"
|
||||||
msgstr "Composer"
|
msgstr "Composer"
|
||||||
|
|
||||||
#: ../src/phone.c:1588
|
#: ../src/phone.c:1601
|
||||||
msgid "Hang up"
|
msgid "Hang up"
|
||||||
msgstr "Raccrocher"
|
msgstr "Raccrocher"
|
||||||
|
|
||||||
#: ../src/phone.c:1616
|
#: ../src/phone.c:1629
|
||||||
msgid "Phone logs"
|
msgid "Phone logs"
|
||||||
msgstr "Journal d'appels"
|
msgstr "Journal d'appels"
|
||||||
|
|
||||||
#: ../src/phone.c:1628
|
#: ../src/phone.c:1641
|
||||||
msgid "Message"
|
msgid "Message"
|
||||||
msgstr "Message"
|
msgstr "Message"
|
||||||
|
|
||||||
#: ../src/phone.c:1658
|
#: ../src/phone.c:1671
|
||||||
msgid "Direction"
|
msgid "Direction"
|
||||||
msgstr "Direction"
|
msgstr "Direction"
|
||||||
|
|
||||||
#: ../src/phone.c:1663 ../src/phone.c:1767
|
#: ../src/phone.c:1676 ../src/phone.c:1780
|
||||||
msgid "To/From"
|
msgid "To/From"
|
||||||
msgstr "Vers/De"
|
msgstr "Vers/De"
|
||||||
|
|
||||||
#: ../src/phone.c:1669 ../src/phone.c:1773
|
#: ../src/phone.c:1682 ../src/phone.c:1786
|
||||||
msgid "Date"
|
msgid "Date"
|
||||||
msgstr "Date"
|
msgstr "Date"
|
||||||
|
|
||||||
#: ../src/phone.c:1706
|
#: ../src/phone.c:1719
|
||||||
msgid "Messages"
|
msgid "Messages"
|
||||||
msgstr "Messages"
|
msgstr "Messages"
|
||||||
|
|
||||||
#: ../src/phone.c:1718
|
#: ../src/phone.c:1731
|
||||||
msgid "New message"
|
msgid "New message"
|
||||||
msgstr "Nouveau message"
|
msgstr "Nouveau message"
|
||||||
|
|
||||||
#: ../src/phone.c:1724 ../src/phone.c:2076
|
#: ../src/phone.c:1737 ../src/phone.c:2089
|
||||||
msgid "Reply"
|
msgid "Reply"
|
||||||
msgstr "Répondre"
|
msgstr "Répondre"
|
||||||
|
|
||||||
#: ../src/phone.c:1742
|
#: ../src/phone.c:1755
|
||||||
msgid "Inbox"
|
msgid "Inbox"
|
||||||
msgstr "Reçus"
|
msgstr "Reçus"
|
||||||
|
|
||||||
#: ../src/phone.c:1746
|
#: ../src/phone.c:1759
|
||||||
msgid "Sent"
|
msgid "Sent"
|
||||||
msgstr "Envoyés"
|
msgstr "Envoyés"
|
||||||
|
|
||||||
#: ../src/phone.c:1835
|
#: ../src/phone.c:1848
|
||||||
msgid "Enabled"
|
msgid "Enabled"
|
||||||
msgstr "Activé"
|
msgstr "Activé"
|
||||||
|
|
||||||
#: ../src/phone.c:2064
|
#: ../src/phone.c:2077
|
||||||
msgid "Read message"
|
msgid "Read message"
|
||||||
msgstr "Lire le message"
|
msgstr "Lire le message"
|
||||||
|
|
||||||
#: ../src/phone.c:2082
|
#: ../src/phone.c:2095
|
||||||
msgid "Forward"
|
msgid "Forward"
|
||||||
msgstr "Transmettre"
|
msgstr "Transmettre"
|
||||||
|
|
||||||
#: ../src/phone.c:2156
|
#: ../src/phone.c:2169
|
||||||
msgid "Phone settings"
|
msgid "Phone settings"
|
||||||
msgstr "Paramètres du téléphone"
|
msgstr "Paramètres du téléphone"
|
||||||
|
|
||||||
#: ../src/phone.c:2237
|
#: ../src/phone.c:2250
|
||||||
msgid "Phone device:"
|
msgid "Phone device:"
|
||||||
msgstr "Noeud d'accès:"
|
msgstr "Noeud d'accès:"
|
||||||
|
|
||||||
#: ../src/phone.c:2240
|
#: ../src/phone.c:2253
|
||||||
msgid "Set the phone device"
|
msgid "Set the phone device"
|
||||||
msgstr "Définir le noeud d'accès"
|
msgstr "Définir le noeud d'accès"
|
||||||
|
|
||||||
#: ../src/phone.c:2245
|
#: ../src/phone.c:2258
|
||||||
msgid "Enable flow control"
|
msgid "Enable flow control"
|
||||||
msgstr "Active le controle de flux"
|
msgstr "Active le controle de flux"
|
||||||
|
|
||||||
#: ../src/phone.c:2343
|
#: ../src/phone.c:2356
|
||||||
msgid "Write message"
|
msgid "Write message"
|
||||||
msgstr "Écrire un message"
|
msgstr "Écrire un message"
|
||||||
|
|
||||||
#: ../src/phone.c:2349
|
#: ../src/phone.c:2362
|
||||||
msgid "Send"
|
msgid "Send"
|
||||||
msgstr "Envoyer"
|
msgstr "Envoyer"
|
||||||
|
|
||||||
#: ../src/phone.c:2355
|
#: ../src/phone.c:2368
|
||||||
msgid "Attach"
|
msgid "Attach"
|
||||||
msgstr "Attacher"
|
msgstr "Attacher"
|
||||||
|
|
||||||
#: ../src/phone.c:2550
|
#: ../src/phone.c:2563
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d message%s, %d/%d characters"
|
msgid "%d message%s, %d/%d characters"
|
||||||
msgstr "%d message%s, %d/%d caractères"
|
msgstr "%d message%s, %d/%d caractères"
|
||||||
|
|
||||||
#: ../src/phone.c:2551
|
#: ../src/phone.c:2564
|
||||||
msgid "s"
|
msgid "s"
|
||||||
msgstr "s"
|
msgstr "s"
|
||||||
|
|
||||||
#: ../src/phone.c:2618
|
#: ../src/phone.c:2631
|
||||||
msgid "Sending message..."
|
msgid "Sending message..."
|
||||||
msgstr "Envoi du message..."
|
msgstr "Envoi du message..."
|
||||||
|
|
||||||
#: ../src/phone.c:2645
|
#: ../src/phone.c:2658
|
||||||
msgid "Outgoing"
|
msgid "Outgoing"
|
||||||
msgstr "Sortant"
|
msgstr "Sortant"
|
||||||
|
|
||||||
#: ../src/phone.c:2815
|
#: ../src/phone.c:2828
|
||||||
msgid "Operation in progress..."
|
msgid "Operation in progress..."
|
||||||
msgstr "Opération en cours..."
|
msgstr "Opération en cours..."
|
||||||
|
|
||||||
#: ../src/phone.c:2849 ../src/phone.c:2854
|
#: ../src/phone.c:2862 ../src/phone.c:2867
|
||||||
msgid "Question"
|
msgid "Question"
|
||||||
msgstr "Question"
|
msgstr "Question"
|
||||||
|
|
||||||
#: ../src/phone.c:2874 ../src/phone.c:2879
|
#: ../src/phone.c:2887 ../src/phone.c:2892
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr "Erreur"
|
msgstr "Erreur"
|
||||||
|
|
||||||
#: ../src/phone.c:2927 ../src/phone.c:2932
|
#: ../src/phone.c:2940 ../src/phone.c:2945
|
||||||
msgid "Information"
|
msgid "Information"
|
||||||
msgstr "Information"
|
msgstr "Information"
|
||||||
|
|
||||||
#: ../src/phone.c:3019
|
#: ../src/phone.c:3032
|
||||||
msgid "Unknown"
|
msgid "Unknown"
|
||||||
msgstr "Inconnu"
|
msgstr "Inconnu"
|
||||||
|
|
||||||
#: ../src/phone.c:3022
|
#: ../src/phone.c:3035
|
||||||
msgid "Registering..."
|
msgid "Registering..."
|
||||||
msgstr "Enregistrement..."
|
msgstr "Enregistrement..."
|
||||||
|
|
||||||
#: ../src/phone.c:3025
|
#: ../src/phone.c:3038
|
||||||
msgid "Denied"
|
msgid "Denied"
|
||||||
msgstr "Refusé"
|
msgstr "Refusé"
|
||||||
|
|
||||||
#: ../src/phone.c:3030
|
#: ../src/phone.c:3043
|
||||||
msgid "SIM check..."
|
msgid "SIM check..."
|
||||||
msgstr "Vérification SIM..."
|
msgstr "Vérification SIM..."
|
||||||
|
|
||||||
#: ../src/phone.c:3036
|
#: ../src/phone.c:3049
|
||||||
msgid "SIM ready..."
|
msgid "SIM ready..."
|
||||||
msgstr "SIM prête..."
|
msgstr "SIM prête..."
|
||||||
|
|
||||||
#: ../src/phone.c:3093
|
#: ../src/phone.c:3106
|
||||||
msgid "Name: "
|
msgid "Name: "
|
||||||
msgstr "Nom: "
|
msgstr "Nom: "
|
||||||
|
|
||||||
#: ../src/phone.c:3101
|
#: ../src/phone.c:3114
|
||||||
msgid "Number: "
|
msgid "Number: "
|
||||||
msgstr "Numéro: "
|
msgstr "Numéro: "
|
||||||
|
|
||||||
#: ../src/phone.c:3116
|
#: ../src/phone.c:3129
|
||||||
msgid "New contact"
|
msgid "New contact"
|
||||||
msgstr "Nouveau contact"
|
msgstr "Nouveau contact"
|
||||||
|
|
||||||
#: ../src/phone.c:3118
|
#: ../src/phone.c:3131
|
||||||
msgid "Edit contact: "
|
msgid "Edit contact: "
|
||||||
msgstr "Modifier contact: "
|
msgstr "Modifier contact: "
|
||||||
|
|
||||||
#: ../src/phone.c:3145
|
#: ../src/phone.c:3158
|
||||||
msgid "The name cannot be empty"
|
msgid "The name cannot be empty"
|
||||||
msgstr "Le nom ne peut être vide"
|
msgstr "Le nom ne peut être vide"
|
||||||
|
|
||||||
#: ../src/phone.c:3150
|
#: ../src/phone.c:3163
|
||||||
msgid "The number cannot be empty"
|
msgid "The number cannot be empty"
|
||||||
msgstr "Le numéro ne peut être vide"
|
msgstr "Le numéro ne peut être vide"
|
||||||
|
|
||||||
#: ../src/phone.c:3258
|
#: ../src/phone.c:3271
|
||||||
msgid "New message received"
|
msgid "New message received"
|
||||||
msgstr "Nouveau message reçu"
|
msgstr "Nouveau message reçu"
|
||||||
|
|
||||||
#: ../src/phone.c:3274
|
#: ../src/phone.c:3287
|
||||||
msgid "Message sent"
|
msgid "Message sent"
|
||||||
msgstr "Message envoyé"
|
msgstr "Message envoyé"
|
||||||
|
|
||||||
#: ../src/phone.c:3307
|
#: ../src/phone.c:3320
|
||||||
msgid "SIM PIN is valid"
|
msgid "SIM PIN is valid"
|
||||||
msgstr "Code SIM PIN valide"
|
msgstr "Code SIM PIN valide"
|
||||||
|
|
||||||
#: ../src/phone.c:3359
|
#: ../src/phone.c:3372
|
||||||
msgid "Could not request new message indications"
|
msgid "Could not request new message indications"
|
||||||
msgstr "Impossible d'obtenir des notifications de nouveaux messages"
|
msgstr "Impossible d'obtenir des notifications de nouveaux messages"
|
||||||
|
|
||||||
#: ../src/phone.c:3370
|
#: ../src/phone.c:3383
|
||||||
msgid "Could not send message"
|
msgid "Could not send message"
|
||||||
msgstr "Le message n'a pas pu être envoyé"
|
msgstr "Le message n'a pas pu être envoyé"
|
||||||
|
|
||||||
#: ../src/phone.c:3378
|
#: ../src/phone.c:3391
|
||||||
msgid "Wrong SIM PIN code"
|
msgid "Wrong SIM PIN code"
|
||||||
msgstr "Code SIM PIN erroné"
|
msgstr "Code SIM PIN erroné"
|
||||||
|
|
||||||
#: ../src/phone.c:3414
|
#: ../src/phone.c:3427
|
||||||
msgid "Raw data (not shown)"
|
msgid "Raw data (not shown)"
|
||||||
msgstr "Données brutes (non affichées)"
|
msgstr "Données brutes (non affichées)"
|
||||||
|
|
||||||
#: ../src/phone.c:3429
|
#: ../src/phone.c:3442
|
||||||
msgid "Message deleted"
|
msgid "Message deleted"
|
||||||
msgstr "Message supprimé"
|
msgstr "Message supprimé"
|
||||||
|
|
||||||
|
11
src/phone.c
11
src/phone.c
@ -1574,8 +1574,11 @@ static void _show_dialer_window(Phone * phone)
|
|||||||
gtk_window_set_title(GTK_WINDOW(phone->di_window), _("Dialer"));
|
gtk_window_set_title(GTK_WINDOW(phone->di_window), _("Dialer"));
|
||||||
g_signal_connect(G_OBJECT(phone->di_window), "delete-event", G_CALLBACK(
|
g_signal_connect(G_OBJECT(phone->di_window), "delete-event", G_CALLBACK(
|
||||||
on_phone_closex), NULL);
|
on_phone_closex), NULL);
|
||||||
gdk_add_client_message_filter(gdk_atom_intern(PHONE_CLIENT_MESSAGE,
|
#if !GTK_CHECK_VERSION(3, 0, 0)
|
||||||
FALSE), on_phone_filter, phone);
|
gdk_display_add_client_message_filter(gdk_display_get_default(),
|
||||||
|
gdk_atom_intern(PHONE_CLIENT_MESSAGE, FALSE),
|
||||||
|
on_phone_filter, phone);
|
||||||
|
#endif
|
||||||
vbox = gtk_vbox_new(FALSE, 4);
|
vbox = gtk_vbox_new(FALSE, 4);
|
||||||
/* entry */
|
/* entry */
|
||||||
hbox = gtk_hbox_new(FALSE, 4);
|
hbox = gtk_hbox_new(FALSE, 4);
|
||||||
@ -1870,7 +1873,7 @@ void phone_show_plugins(Phone * phone, gboolean show)
|
|||||||
bbox = gtk_hbutton_box_new();
|
bbox = gtk_hbutton_box_new();
|
||||||
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox),
|
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox),
|
||||||
GTK_BUTTONBOX_END);
|
GTK_BUTTONBOX_END);
|
||||||
gtk_button_box_set_spacing(GTK_BUTTON_BOX(bbox), 4);
|
gtk_box_set_spacing(GTK_BOX(bbox), 4);
|
||||||
widget = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
|
widget = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
|
||||||
g_signal_connect_swapped(G_OBJECT(widget), "clicked",
|
g_signal_connect_swapped(G_OBJECT(widget), "clicked",
|
||||||
G_CALLBACK(_on_plugins_cancel), phone);
|
G_CALLBACK(_on_plugins_cancel), phone);
|
||||||
@ -2256,7 +2259,7 @@ void phone_show_system(Phone * phone, gboolean show)
|
|||||||
gtk_box_pack_start(GTK_BOX(vbox), phone->sy_hwflow, FALSE, TRUE, 4);
|
gtk_box_pack_start(GTK_BOX(vbox), phone->sy_hwflow, FALSE, TRUE, 4);
|
||||||
bbox = gtk_hbutton_box_new();
|
bbox = gtk_hbutton_box_new();
|
||||||
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END);
|
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END);
|
||||||
gtk_button_box_set_spacing(GTK_BUTTON_BOX(bbox), 4);
|
gtk_box_set_spacing(GTK_BOX(bbox), 4);
|
||||||
widget = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
|
widget = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
|
||||||
g_signal_connect_swapped(G_OBJECT(widget), "clicked", G_CALLBACK(
|
g_signal_connect_swapped(G_OBJECT(widget), "clicked", G_CALLBACK(
|
||||||
_on_system_cancel), phone);
|
_on_system_cancel), phone);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
/* Copyright (c) 2010 Pierre Pronchery <khorben@defora.org> */
|
/* Copyright (c) 2011 Pierre Pronchery <khorben@defora.org> */
|
||||||
/* This file is part of DeforaOS Desktop Phone */
|
/* This file is part of DeforaOS Desktop Phone */
|
||||||
/* 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
|
||||||
@ -193,10 +193,19 @@ static int _debug_init(PhonePlugin * plugin)
|
|||||||
gtk_container_set_border_width(GTK_CONTAINER(vbox), 4);
|
gtk_container_set_border_width(GTK_CONTAINER(vbox), 4);
|
||||||
/* gsm queue */
|
/* gsm queue */
|
||||||
debug->queue = NULL;
|
debug->queue = NULL;
|
||||||
|
#if GTK_CHECK_VERSION(3, 0, 0)
|
||||||
|
debug->gsm = gtk_combo_box_text_new();
|
||||||
|
#else
|
||||||
debug->gsm = gtk_combo_box_new_text();
|
debug->gsm = gtk_combo_box_new_text();
|
||||||
|
#endif
|
||||||
for(i = 0; _debug_gsm_commands[i].name != NULL; i++)
|
for(i = 0; _debug_gsm_commands[i].name != NULL; i++)
|
||||||
|
#if GTK_CHECK_VERSION(3, 0, 0)
|
||||||
|
gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(debug->gsm), NULL,
|
||||||
|
_debug_gsm_commands[i].name);
|
||||||
|
#else
|
||||||
gtk_combo_box_append_text(GTK_COMBO_BOX(debug->gsm),
|
gtk_combo_box_append_text(GTK_COMBO_BOX(debug->gsm),
|
||||||
_debug_gsm_commands[i].name);
|
_debug_gsm_commands[i].name);
|
||||||
|
#endif
|
||||||
g_signal_connect_swapped(G_OBJECT(debug->gsm), "changed", G_CALLBACK(
|
g_signal_connect_swapped(G_OBJECT(debug->gsm), "changed", G_CALLBACK(
|
||||||
_on_debug_queue_changed), plugin);
|
_on_debug_queue_changed), plugin);
|
||||||
gtk_combo_box_set_active(GTK_COMBO_BOX(debug->gsm), 0);
|
gtk_combo_box_set_active(GTK_COMBO_BOX(debug->gsm), 0);
|
||||||
@ -279,8 +288,13 @@ static void _on_debug_queue_changed(gpointer data)
|
|||||||
|
|
||||||
if(debug->queue == NULL)
|
if(debug->queue == NULL)
|
||||||
return;
|
return;
|
||||||
|
#if GTK_CHECK_VERSION(3, 0, 0)
|
||||||
|
if((text = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(
|
||||||
|
debug->gsm))) == NULL)
|
||||||
|
#else
|
||||||
if((text = gtk_combo_box_get_active_text(GTK_COMBO_BOX(debug->gsm)))
|
if((text = gtk_combo_box_get_active_text(GTK_COMBO_BOX(debug->gsm)))
|
||||||
== NULL)
|
== NULL)
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
for(i = 0; _debug_gsm_commands[i].name != NULL; i++)
|
for(i = 0; _debug_gsm_commands[i].name != NULL; i++)
|
||||||
if(strcmp(_debug_gsm_commands[i].name, text) == 0)
|
if(strcmp(_debug_gsm_commands[i].name, text) == 0)
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
#if GTK_CHECK_VERSION(3, 0, 0)
|
||||||
|
# include <gtk/gtkx.h>
|
||||||
|
#endif
|
||||||
#include "Phone.h"
|
#include "Phone.h"
|
||||||
#include "../phone.h"
|
#include "../phone.h"
|
||||||
|
|
||||||
@ -421,7 +424,7 @@ static void _panel_settings(PhonePlugin * plugin)
|
|||||||
/* button box */
|
/* button box */
|
||||||
bbox = gtk_hbutton_box_new();
|
bbox = gtk_hbutton_box_new();
|
||||||
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END);
|
gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END);
|
||||||
gtk_button_box_set_spacing(GTK_BUTTON_BOX(bbox), 4);
|
gtk_box_set_spacing(GTK_BOX(bbox), 4);
|
||||||
widget = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
|
widget = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
|
||||||
g_signal_connect_swapped(G_OBJECT(widget), "clicked", G_CALLBACK(
|
g_signal_connect_swapped(G_OBJECT(widget), "clicked", G_CALLBACK(
|
||||||
_on_settings_cancel), plugin);
|
_on_settings_cancel), plugin);
|
||||||
|
Loading…
Reference in New Issue
Block a user