[Commits] [SCM] claws branch, master, updated. 3.9.2-2-g0c8fa95
claws at claws-mail.org
claws at claws-mail.org
Tue Jun 11 13:10:53 CEST 2013
The branch master of project "claws" (Claws Mail) has been updated
via 0c8fa959c3daf8fb002fbfc06260c4b4ca5d8f50 (commit)
from 8cd3d8443dfd5ab9cfa0880ac76d3e78de7a0dd4 (commit)
- Log -----------------------------------------------------------------
commit 0c8fa959c3daf8fb002fbfc06260c4b4ca5d8f50
Author: Paul <paul at claws-mail.org>
Date: Tue Jun 11 12:10:45 2013 +0100
fix debian bug #711864, 'claws-mail-vcalendar-plugin: when creating meeting GTK_IS_COMBO_BOX_TEXT failed'
diff --git a/src/plugins/vcalendar/vcal_meeting_gtk.c b/src/plugins/vcalendar/vcal_meeting_gtk.c
index bf23801..37fef67 100644
--- a/src/plugins/vcalendar/vcal_meeting_gtk.c
+++ b/src/plugins/vcalendar/vcal_meeting_gtk.c
@@ -1433,15 +1433,31 @@ static VCalMeeting *vcal_meeting_create_real(VCalEvent *event, gboolean visible)
times = get_predefined_times();
- meet->start_time = gtk_combo_box_entry_new_text ();
+#if !GTK_CHECK_VERSION(2, 24, 0)
+ meet->start_time = gtk_combo_box_entry_new_text();
+#else
+ meet->start_time = gtk_combo_box_text_new_with_entry();
+#endif
gtk_combo_box_set_active(GTK_COMBO_BOX(meet->start_time), -1);
menu = GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(meet->start_time)));
+#if !GTK_CHECK_VERSION(2, 24, 0)
combobox_set_popdown_strings(GTK_COMBO_BOX(meet->start_time), times);
-
- meet->end_time = gtk_combo_box_entry_new_text ();
+#else
+ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(meet->start_time), times);
+#endif
+
+#if !GTK_CHECK_VERSION(2, 24, 0)
+ meet->end_time = gtk_combo_box_entry_new_text();
+#else
+ meet->end_time = gtk_combo_box_text_new_with_entry();
+#endif
gtk_combo_box_set_active(GTK_COMBO_BOX(meet->end_time), -1);
menu = GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(meet->end_time)));
+#if !GTK_CHECK_VERSION(2, 24, 0)
combobox_set_popdown_strings(GTK_COMBO_BOX(meet->end_time), times);
+#else
+ combobox_set_popdown_strings(GTK_COMBO_BOX_TEXT(meet->end_time), times);
+#endif
list_free_strings(times);
g_list_free(times);
@@ -1597,12 +1613,14 @@ static VCalMeeting *vcal_meeting_create_real(VCalEvent *event, gboolean visible)
date_hbox = gtk_hbox_new(FALSE, 6);
date_vbox = gtk_vbox_new(FALSE, 6);
hbox = gtk_hbox_new(FALSE, 6);
- label = gtk_label_new(_("<b>Starts at:</b> ")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+ label = gtk_label_new(_("<b>Starts at:</b> "));
+ gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(hbox), meet->start_time, FALSE, FALSE, 0);
- label = gtk_label_new(_("<b> on:</b>")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+ label = gtk_label_new(_("<b> on:</b>"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(date_vbox), hbox, FALSE, FALSE, 0);
@@ -1619,12 +1637,14 @@ static VCalMeeting *vcal_meeting_create_real(VCalEvent *event, gboolean visible)
date_vbox = gtk_vbox_new(FALSE, 6);
hbox = gtk_hbox_new(FALSE, 6);
- label = gtk_label_new(_("<b>Ends at:</b> ")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+ label = gtk_label_new(_("<b>Ends at:</b> "));
+ gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(hbox), meet->end_time, FALSE, FALSE, 0);
- label = gtk_label_new(_("<b> on:</b>")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+ label = gtk_label_new(_("<b> on:</b>"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(date_vbox), hbox, FALSE, FALSE, 0);
-----------------------------------------------------------------------
Summary of changes:
src/plugins/vcalendar/vcal_meeting_gtk.c | 34 +++++++++++++++++++++++------
1 files changed, 27 insertions(+), 7 deletions(-)
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list