Preparing the migration to Gtk+ 3.0

This commit is contained in:
Pierre Pronchery 2011-04-16 21:48:35 +00:00
parent fd47741cf1
commit 526fa05d74
2 changed files with 6 additions and 2 deletions

View File

@ -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-03-10 18:04+0100\n" "POT-Creation-Date: 2011-04-16 23:48+0200\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"
@ -32,7 +32,7 @@ msgstr "Titre:"
msgid "Priority:" msgid "Priority:"
msgstr "Priorité:" msgstr "Priorité:"
#: ../src/taskedit.c:100 #: ../src/taskedit.c:104
msgid "Description:" msgid "Description:"
msgstr "Description:" msgstr "Description:"

View File

@ -90,7 +90,11 @@ TaskEdit * taskedit_new(Todo * todo, Task * task)
gtk_misc_set_alignment(GTK_MISC(widget), 0.0, 0.5); gtk_misc_set_alignment(GTK_MISC(widget), 0.0, 0.5);
gtk_size_group_add_widget(group, widget); gtk_size_group_add_widget(group, widget);
gtk_box_pack_start(GTK_BOX(hbox), widget, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(hbox), widget, FALSE, TRUE, 0);
#if GTK_CHECK_VERSION(3, 0, 0)
taskedit->priority = gtk_combo_box_text_new_with_entry();
#else
taskedit->priority = gtk_combo_box_new_with_entry(); taskedit->priority = gtk_combo_box_new_with_entry();
#endif
entry = gtk_bin_get_child(GTK_BIN(taskedit->priority)); entry = gtk_bin_get_child(GTK_BIN(taskedit->priority));
gtk_entry_set_text(GTK_ENTRY(entry), task_get_priority(task)); gtk_entry_set_text(GTK_ENTRY(entry), task_get_priority(task));
gtk_box_pack_start(GTK_BOX(hbox), taskedit->priority, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(hbox), taskedit->priority, TRUE, TRUE, 0);