[evolution-rss] adapt to Send/Receive dialog changes
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss] adapt to Send/Receive dialog changes
- Date: Fri, 1 Jun 2012 10:08:58 +0000 (UTC)
commit 2698bd191a265caf7550f6ed082997d7b0e325de
Author: Lucian Langa <lucilanga gnome org>
Date: Fri Jun 1 12:08:21 2012 +0200
adapt to Send/Receive dialog changes
src/rss.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/rss.c b/src/rss.c
index 1ecc593..cf95ce4 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -5009,7 +5009,9 @@ org_gnome_evolution_rss(void *ep, EMEventTargetSendReceive *t)
row+=2;
t->row = row;
+#if EVOLUTION_VERSION < 30501
gtk_table_resize(GTK_TABLE(t->table), t->row, 4);
+#endif
pretty_url = g_strdup ("RSS");
label = gtk_label_new (NULL);
@@ -5032,6 +5034,7 @@ org_gnome_evolution_rss(void *ep, EMEventTargetSendReceive *t)
gtk_misc_set_alignment (GTK_MISC (label), 0, .5);
gtk_misc_set_alignment (GTK_MISC (status_label), 0, .5);
+#if EVOLUTION_VERSION < 30501
gtk_table_attach (
GTK_TABLE (t->table), recv_icon,
0, 1, row, row+2, 0, 0, 0, 0);
@@ -5047,6 +5050,19 @@ org_gnome_evolution_rss(void *ep, EMEventTargetSendReceive *t)
gtk_table_attach (
GTK_TABLE (t->table), status_label,
1, 2, row+1, row+2, GTK_EXPAND | GTK_FILL, 0, 0, 0);
+#else
+ gtk_widget_set_hexpand (label, TRUE);
+ gtk_widget_set_halign (label, GTK_ALIGN_FILL);
+
+ gtk_widget_set_hexpand (status_label, TRUE);
+ gtk_widget_set_halign (status_label, GTK_ALIGN_FILL);
+
+ gtk_grid_attach (t->grid, recv_icon, 0, row, 1, 2);
+ gtk_grid_attach (t->grid, label, 1, row, 1, 1);
+ gtk_grid_attach (t->grid, progress_bar, 2, row, 1, 1);
+ gtk_grid_attach (t->grid, cancel_button, 3, row, 1, 1);
+ gtk_grid_attach (t->grid, status_label, 1, row + 1, 2, 1);
+#endif
g_signal_connect (
cancel_button, "clicked",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]