Restore the search history functionality with Gtk+ < 2.24

This commit is contained in:
Pierre Pronchery 2012-03-21 01:55:11 +00:00
parent 831fb5eb77
commit 4bd8304723
5 changed files with 99 additions and 98 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Editor 0.1.1\n" "Project-Id-Version: Editor 0.1.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-02-24 23:00-0500\n" "POT-Creation-Date: 2012-03-21 02:54+0100\n"
"PO-Revision-Date: 2010-04-07 22:05+0200\n" "PO-Revision-Date: 2010-04-07 22:05+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: German\n" "Language-Team: German\n"
@ -152,94 +152,94 @@ msgstr ""
msgid "Find:" msgid "Find:"
msgstr "Suchen:" msgstr "Suchen:"
#: ../src/editor.c:283 #: ../src/editor.c:289
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "" msgstr ""
#: ../src/editor.c:285 #: ../src/editor.c:291
msgid "Wrap" msgid "Wrap"
msgstr "" msgstr ""
#: ../src/editor.c:319 #: ../src/editor.c:325
msgid "Text editor - " msgid "Text editor - "
msgstr "" msgstr ""
#: ../src/editor.c:320 #: ../src/editor.c:326
msgid "(Untitled)" msgid "(Untitled)"
msgstr "(Unbenannt)" msgstr "(Unbenannt)"
#: ../src/editor.c:433 #: ../src/editor.c:439
msgid "translator-credits" msgid "translator-credits"
msgstr "Pierre Pronchery <khorben@defora.org>" msgstr "Pierre Pronchery <khorben@defora.org>"
#: ../src/editor.c:469 #: ../src/editor.c:475
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "" msgstr ""
#: ../src/editor.c:486 ../src/editor.c:495 ../src/editor.c:853 #: ../src/editor.c:492 ../src/editor.c:501 ../src/editor.c:859
#: ../src/editor.c:858 #: ../src/editor.c:864
msgid "Question" msgid "Question"
msgstr "" msgstr ""
#: ../src/editor.c:511 ../src/editor.c:515 #: ../src/editor.c:517 ../src/editor.c:521
msgid "Error" msgid "Error"
msgstr "Fehler" msgstr "Fehler"
#: ../src/editor.c:537 ../src/editor.c:690 #: ../src/editor.c:543 ../src/editor.c:696
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Discard or save them?" "Discard or save them?"
msgstr "" msgstr ""
#: ../src/editor.c:648 #: ../src/editor.c:654
msgid "Insert file..." msgid "Insert file..."
msgstr "Datei einfügen..." msgstr "Datei einfügen..."
#: ../src/editor.c:654 ../src/editor.c:767 #: ../src/editor.c:660 ../src/editor.c:773
msgid "Text files" msgid "Text files"
msgstr "Text Dateien" msgstr "Text Dateien"
#: ../src/editor.c:658 ../src/editor.c:771 #: ../src/editor.c:664 ../src/editor.c:777
msgid "All files" msgid "All files"
msgstr "Alle Dateien" msgstr "Alle Dateien"
#: ../src/editor.c:696 #: ../src/editor.c:702
msgid "Discard" msgid "Discard"
msgstr "Löschen" msgstr "Löschen"
#: ../src/editor.c:761 #: ../src/editor.c:767
msgid "Open file..." msgid "Open file..."
msgstr "Offnen..." msgstr "Offnen..."
#: ../src/editor.c:829 #: ../src/editor.c:835
msgid "Partial write" msgid "Partial write"
msgstr "" msgstr ""
#: ../src/editor.c:857 #: ../src/editor.c:863
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "" msgstr ""
#: ../src/editor.c:866 #: ../src/editor.c:872
msgid "Allocation error" msgid "Allocation error"
msgstr "" msgstr ""
#: ../src/editor.c:881 #: ../src/editor.c:887
msgid "Save as..." msgid "Save as..."
msgstr "" msgstr ""
#: ../src/editor.c:938 #: ../src/editor.c:944
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "Text Editor Einstellungen" msgstr "Text Editor Einstellungen"
#: ../src/editor.c:955 #: ../src/editor.c:961
msgid "Font:" msgid "Font:"
msgstr "" msgstr ""
#: ../src/editor.c:965 #: ../src/editor.c:971
msgid "Wrap mode:" msgid "Wrap mode:"
msgstr "" msgstr ""
#: ../src/editor.c:1176 #: ../src/editor.c:1182
msgid "Text not found" msgid "Text not found"
msgstr "" msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Editor 0.1.1\n" "Project-Id-Version: Editor 0.1.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-02-24 23:00-0500\n" "POT-Creation-Date: 2012-03-21 02:54+0100\n"
"PO-Revision-Date: 2010-04-07 22:07+0200\n" "PO-Revision-Date: 2010-04-07 22:07+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: Spanish\n" "Language-Team: Spanish\n"
@ -152,94 +152,94 @@ msgstr ""
msgid "Find:" msgid "Find:"
msgstr "" msgstr ""
#: ../src/editor.c:283 #: ../src/editor.c:289
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "" msgstr ""
#: ../src/editor.c:285 #: ../src/editor.c:291
msgid "Wrap" msgid "Wrap"
msgstr "" msgstr ""
#: ../src/editor.c:319 #: ../src/editor.c:325
msgid "Text editor - " msgid "Text editor - "
msgstr "" msgstr ""
#: ../src/editor.c:320 #: ../src/editor.c:326
msgid "(Untitled)" msgid "(Untitled)"
msgstr "" msgstr ""
#: ../src/editor.c:433 #: ../src/editor.c:439
msgid "translator-credits" msgid "translator-credits"
msgstr "" msgstr ""
#: ../src/editor.c:469 #: ../src/editor.c:475
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "" msgstr ""
#: ../src/editor.c:486 ../src/editor.c:495 ../src/editor.c:853 #: ../src/editor.c:492 ../src/editor.c:501 ../src/editor.c:859
#: ../src/editor.c:858 #: ../src/editor.c:864
msgid "Question" msgid "Question"
msgstr "" msgstr ""
#: ../src/editor.c:511 ../src/editor.c:515 #: ../src/editor.c:517 ../src/editor.c:521
msgid "Error" msgid "Error"
msgstr "" msgstr ""
#: ../src/editor.c:537 ../src/editor.c:690 #: ../src/editor.c:543 ../src/editor.c:696
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Discard or save them?" "Discard or save them?"
msgstr "" msgstr ""
#: ../src/editor.c:648 #: ../src/editor.c:654
msgid "Insert file..." msgid "Insert file..."
msgstr "" msgstr ""
#: ../src/editor.c:654 ../src/editor.c:767 #: ../src/editor.c:660 ../src/editor.c:773
msgid "Text files" msgid "Text files"
msgstr "" msgstr ""
#: ../src/editor.c:658 ../src/editor.c:771 #: ../src/editor.c:664 ../src/editor.c:777
msgid "All files" msgid "All files"
msgstr "" msgstr ""
#: ../src/editor.c:696 #: ../src/editor.c:702
msgid "Discard" msgid "Discard"
msgstr "" msgstr ""
#: ../src/editor.c:761 #: ../src/editor.c:767
msgid "Open file..." msgid "Open file..."
msgstr "" msgstr ""
#: ../src/editor.c:829 #: ../src/editor.c:835
msgid "Partial write" msgid "Partial write"
msgstr "" msgstr ""
#: ../src/editor.c:857 #: ../src/editor.c:863
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "" msgstr ""
#: ../src/editor.c:866 #: ../src/editor.c:872
msgid "Allocation error" msgid "Allocation error"
msgstr "" msgstr ""
#: ../src/editor.c:881 #: ../src/editor.c:887
msgid "Save as..." msgid "Save as..."
msgstr "" msgstr ""
#: ../src/editor.c:938 #: ../src/editor.c:944
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "" msgstr ""
#: ../src/editor.c:955 #: ../src/editor.c:961
msgid "Font:" msgid "Font:"
msgstr "" msgstr ""
#: ../src/editor.c:965 #: ../src/editor.c:971
msgid "Wrap mode:" msgid "Wrap mode:"
msgstr "" msgstr ""
#: ../src/editor.c:1176 #: ../src/editor.c:1182
msgid "Text not found" msgid "Text not found"
msgstr "" msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Editor 0.1.1\n" "Project-Id-Version: Editor 0.1.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-02-24 23:00-0500\n" "POT-Creation-Date: 2012-03-21 02:54+0100\n"
"PO-Revision-Date: 2010-04-11 12:32+0200\n" "PO-Revision-Date: 2010-04-11 12:32+0200\n"
"Last-Translator: Calimero <calimeroteknik@free.fr>\n" "Last-Translator: Calimero <calimeroteknik@free.fr>\n"
"Language-Team: French\n" "Language-Team: French\n"
@ -152,42 +152,42 @@ msgstr "mots puis caractères"
msgid "Find:" msgid "Find:"
msgstr "Chercher :" msgstr "Chercher :"
#: ../src/editor.c:283 #: ../src/editor.c:289
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "Sensible à la casse" msgstr "Sensible à la casse"
#: ../src/editor.c:285 #: ../src/editor.c:291
msgid "Wrap" msgid "Wrap"
msgstr "Boucler" msgstr "Boucler"
#: ../src/editor.c:319 #: ../src/editor.c:325
msgid "Text editor - " msgid "Text editor - "
msgstr "Éditeur de texte - " msgstr "Éditeur de texte - "
#: ../src/editor.c:320 #: ../src/editor.c:326
msgid "(Untitled)" msgid "(Untitled)"
msgstr "(Sans titre)" msgstr "(Sans titre)"
#: ../src/editor.c:433 #: ../src/editor.c:439
msgid "translator-credits" msgid "translator-credits"
msgstr "" msgstr ""
"Calimero <calimeroteknik@free.fr>\n" "Calimero <calimeroteknik@free.fr>\n"
"Pierre Pronchery <khorben@defora.org>" "Pierre Pronchery <khorben@defora.org>"
#: ../src/editor.c:469 #: ../src/editor.c:475
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "Erreur lors de la sauvegarde de la configuration" msgstr "Erreur lors de la sauvegarde de la configuration"
#: ../src/editor.c:486 ../src/editor.c:495 ../src/editor.c:853 #: ../src/editor.c:492 ../src/editor.c:501 ../src/editor.c:859
#: ../src/editor.c:858 #: ../src/editor.c:864
msgid "Question" msgid "Question"
msgstr "Question" msgstr "Question"
#: ../src/editor.c:511 ../src/editor.c:515 #: ../src/editor.c:517 ../src/editor.c:521
msgid "Error" msgid "Error"
msgstr "Erreur" msgstr "Erreur"
#: ../src/editor.c:537 ../src/editor.c:690 #: ../src/editor.c:543 ../src/editor.c:696
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Discard or save them?" "Discard or save them?"
@ -195,55 +195,55 @@ msgstr ""
"Il y a des changements non enregistrés.\n" "Il y a des changements non enregistrés.\n"
"Abandonner ou enregistrer ?" "Abandonner ou enregistrer ?"
#: ../src/editor.c:648 #: ../src/editor.c:654
msgid "Insert file..." msgid "Insert file..."
msgstr "Insérer un fichier..." msgstr "Insérer un fichier..."
#: ../src/editor.c:654 ../src/editor.c:767 #: ../src/editor.c:660 ../src/editor.c:773
msgid "Text files" msgid "Text files"
msgstr "Fichiers texte" msgstr "Fichiers texte"
#: ../src/editor.c:658 ../src/editor.c:771 #: ../src/editor.c:664 ../src/editor.c:777
msgid "All files" msgid "All files"
msgstr "Tous les fichiers" msgstr "Tous les fichiers"
#: ../src/editor.c:696 #: ../src/editor.c:702
msgid "Discard" msgid "Discard"
msgstr "Annuler" msgstr "Annuler"
#: ../src/editor.c:761 #: ../src/editor.c:767
msgid "Open file..." msgid "Open file..."
msgstr "Ouvrir un fichier..." msgstr "Ouvrir un fichier..."
#: ../src/editor.c:829 #: ../src/editor.c:835
msgid "Partial write" msgid "Partial write"
msgstr "Écriture partielle" msgstr "Écriture partielle"
#: ../src/editor.c:857 #: ../src/editor.c:863
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "Le fichier existe déjà. L'écraser ?" msgstr "Le fichier existe déjà. L'écraser ?"
#: ../src/editor.c:866 #: ../src/editor.c:872
msgid "Allocation error" msgid "Allocation error"
msgstr "Erreur d'allocation" msgstr "Erreur d'allocation"
#: ../src/editor.c:881 #: ../src/editor.c:887
msgid "Save as..." msgid "Save as..."
msgstr "Enregistrer sous..." msgstr "Enregistrer sous..."
#: ../src/editor.c:938 #: ../src/editor.c:944
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "Préférences de l'éditeur de texte" msgstr "Préférences de l'éditeur de texte"
#: ../src/editor.c:955 #: ../src/editor.c:961
msgid "Font:" msgid "Font:"
msgstr "Police :" msgstr "Police :"
#: ../src/editor.c:965 #: ../src/editor.c:971
msgid "Wrap mode:" msgid "Wrap mode:"
msgstr "Retour à la ligne :" msgstr "Retour à la ligne :"
#: ../src/editor.c:1176 #: ../src/editor.c:1182
msgid "Text not found" msgid "Text not found"
msgstr "Texte non trouvé" msgstr "Texte non trouvé"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Editor 0.1.1\n" "Project-Id-Version: Editor 0.1.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-02-24 23:00-0500\n" "POT-Creation-Date: 2012-03-21 02:54+0100\n"
"PO-Revision-Date: 2010-04-09 16:43+0200\n" "PO-Revision-Date: 2010-04-09 16:43+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: Italian\n" "Language-Team: Italian\n"
@ -153,94 +153,94 @@ msgstr ""
msgid "Find:" msgid "Find:"
msgstr "" msgstr ""
#: ../src/editor.c:283 #: ../src/editor.c:289
msgid "Case-sensitive" msgid "Case-sensitive"
msgstr "" msgstr ""
#: ../src/editor.c:285 #: ../src/editor.c:291
msgid "Wrap" msgid "Wrap"
msgstr "" msgstr ""
#: ../src/editor.c:319 #: ../src/editor.c:325
msgid "Text editor - " msgid "Text editor - "
msgstr "" msgstr ""
#: ../src/editor.c:320 #: ../src/editor.c:326
msgid "(Untitled)" msgid "(Untitled)"
msgstr "" msgstr ""
#: ../src/editor.c:433 #: ../src/editor.c:439
msgid "translator-credits" msgid "translator-credits"
msgstr "" msgstr ""
#: ../src/editor.c:469 #: ../src/editor.c:475
msgid "Could not save configuration" msgid "Could not save configuration"
msgstr "" msgstr ""
#: ../src/editor.c:486 ../src/editor.c:495 ../src/editor.c:853 #: ../src/editor.c:492 ../src/editor.c:501 ../src/editor.c:859
#: ../src/editor.c:858 #: ../src/editor.c:864
msgid "Question" msgid "Question"
msgstr "" msgstr ""
#: ../src/editor.c:511 ../src/editor.c:515 #: ../src/editor.c:517 ../src/editor.c:521
msgid "Error" msgid "Error"
msgstr "" msgstr ""
#: ../src/editor.c:537 ../src/editor.c:690 #: ../src/editor.c:543 ../src/editor.c:696
msgid "" msgid ""
"There are unsaved changes.\n" "There are unsaved changes.\n"
"Discard or save them?" "Discard or save them?"
msgstr "" msgstr ""
#: ../src/editor.c:648 #: ../src/editor.c:654
msgid "Insert file..." msgid "Insert file..."
msgstr "" msgstr ""
#: ../src/editor.c:654 ../src/editor.c:767 #: ../src/editor.c:660 ../src/editor.c:773
msgid "Text files" msgid "Text files"
msgstr "" msgstr ""
#: ../src/editor.c:658 ../src/editor.c:771 #: ../src/editor.c:664 ../src/editor.c:777
msgid "All files" msgid "All files"
msgstr "" msgstr ""
#: ../src/editor.c:696 #: ../src/editor.c:702
msgid "Discard" msgid "Discard"
msgstr "" msgstr ""
#: ../src/editor.c:761 #: ../src/editor.c:767
msgid "Open file..." msgid "Open file..."
msgstr "" msgstr ""
#: ../src/editor.c:829 #: ../src/editor.c:835
msgid "Partial write" msgid "Partial write"
msgstr "" msgstr ""
#: ../src/editor.c:857 #: ../src/editor.c:863
msgid "This file already exists. Overwrite?" msgid "This file already exists. Overwrite?"
msgstr "" msgstr ""
#: ../src/editor.c:866 #: ../src/editor.c:872
msgid "Allocation error" msgid "Allocation error"
msgstr "" msgstr ""
#: ../src/editor.c:881 #: ../src/editor.c:887
msgid "Save as..." msgid "Save as..."
msgstr "" msgstr ""
#: ../src/editor.c:938 #: ../src/editor.c:944
msgid "Text editor preferences" msgid "Text editor preferences"
msgstr "" msgstr ""
#: ../src/editor.c:955 #: ../src/editor.c:961
msgid "Font:" msgid "Font:"
msgstr "" msgstr ""
#: ../src/editor.c:965 #: ../src/editor.c:971
msgid "Wrap mode:" msgid "Wrap mode:"
msgstr "" msgstr ""
#: ../src/editor.c:1176 #: ../src/editor.c:1182
msgid "Text not found" msgid "Text not found"
msgstr "" msgstr ""

View File

@ -279,9 +279,10 @@ Editor * editor_new(void)
editor->fi_entry = gtk_bin_get_child(GTK_BIN(editor->fi_text)); editor->fi_entry = gtk_bin_get_child(GTK_BIN(editor->fi_text));
gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX(editor->fi_text), 0); gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX(editor->fi_text), 0);
#else #else
editor->fi_text = gtk_entry_new(); editor->fi_text = gtk_combo_box_entry_new_with_model(GTK_TREE_MODEL(
editor->fi_entry = editor->fi_text; editor->fi_store), 0);
#endif #endif
editor->fi_entry = gtk_bin_get_child(GTK_BIN(editor->fi_text));
g_signal_connect_swapped(editor->fi_entry, "activate", G_CALLBACK( g_signal_connect_swapped(editor->fi_entry, "activate", G_CALLBACK(
_editor_on_find_clicked), editor); _editor_on_find_clicked), editor);
gtk_box_pack_start(GTK_BOX(hbox), editor->fi_text, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(hbox), editor->fi_text, FALSE, TRUE, 0);