From 526fa05d745a078170aac99df6b21f46f101598b Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 16 Apr 2011 21:48:35 +0000 Subject: [PATCH] Preparing the migration to Gtk+ 3.0 --- po/fr.po | 4 ++-- src/taskedit.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/po/fr.po b/po/fr.po index ea23469..0b25339 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Todo 0.0.0\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" "Last-Translator: Pierre Pronchery \n" "Language-Team: French\n" @@ -32,7 +32,7 @@ msgstr "Titre:" msgid "Priority:" msgstr "Priorité:" -#: ../src/taskedit.c:100 +#: ../src/taskedit.c:104 msgid "Description:" msgstr "Description:" diff --git a/src/taskedit.c b/src/taskedit.c index 8d28654..bba3140 100644 --- a/src/taskedit.c +++ b/src/taskedit.c @@ -90,7 +90,11 @@ TaskEdit * taskedit_new(Todo * todo, Task * task) gtk_misc_set_alignment(GTK_MISC(widget), 0.0, 0.5); gtk_size_group_add_widget(group, widget); 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(); +#endif entry = gtk_bin_get_child(GTK_BIN(taskedit->priority)); gtk_entry_set_text(GTK_ENTRY(entry), task_get_priority(task)); gtk_box_pack_start(GTK_BOX(hbox), taskedit->priority, TRUE, TRUE, 0);