aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution
diff options
context:
space:
mode:
Diffstat (limited to 'my-evolution')
-rw-r--r--my-evolution/ChangeLog9
-rw-r--r--my-evolution/e-summary-preferences.c39
-rw-r--r--my-evolution/my-evolution.glade4
3 files changed, 33 insertions, 19 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog
index 318d8055af..787d5df475 100644
--- a/my-evolution/ChangeLog
+++ b/my-evolution/ChangeLog
@@ -1,3 +1,12 @@
+2001-07-06 Iain Holmes <iain@ximian.com>
+
+ * e-summary-preferences.c (fill_rdf_shown_list): Attach data
+ (rdf_add_clicked_cb): Allow multiple rows to be removed.
+ (rdf_remove_clicked_cb): Use the data.
+
+ * my-evolution.glade: Allow multiple selection in the RDF all clist.
+ Only allow single selection in the shown rdf list.
+
2001-07-05 Iain Holmes <iain@ximian.com>
* e-summary-preferences.c (rdf_new_url_clicked_cb): Change RDF to
diff --git a/my-evolution/e-summary-preferences.c b/my-evolution/e-summary-preferences.c
index e134aeb868..0b66b231de 100644
--- a/my-evolution/e-summary-preferences.c
+++ b/my-evolution/e-summary-preferences.c
@@ -568,9 +568,11 @@ fill_rdf_shown_clist (GtkCList *clist,
for (p = pd->summary->preferences->rdf_urls; p; p = p->next) {
char *text[1];
+ int row;
text[0] = (char *) find_name_for_url (pd, p->data);
- gtk_clist_append (clist, text);
+ row = gtk_clist_append (clist, text);
+ gtk_clist_set_row_data (clist, row, p);
}
}
@@ -723,25 +725,28 @@ rdf_add_clicked_cb (GtkButton *button,
PropertyData *pd)
{
struct _RDFInfo *info;
- GList *p;
+ GList *p, *rows;
char *text[1];
int row;
- row = GPOINTER_TO_INT (GTK_CLIST (pd->rdf->all)->selection->data);
- info = gtk_clist_get_row_data (GTK_CLIST (pd->rdf->all), row);
-
- text[0] = info->name;
-
- for (p = pd->summary->preferences->rdf_urls; p; p = p->next) {
- if (strcmp (p->data, info->url) == 0) {
- /* Found it already */
- return;
+ for (rows = GTK_CLIST (pd->rdf->all)->selection; rows; rows = rows->next) {
+ row = GPOINTER_TO_INT (rows->data);
+ info = gtk_clist_get_row_data (GTK_CLIST (pd->rdf->all), row);
+
+ text[0] = info->name;
+
+ for (p = pd->summary->preferences->rdf_urls; p; p = p->next) {
+ if (strcmp (p->data, info->url) == 0) {
+ /* Found it already */
+ return;
+ }
}
+
+ pd->summary->preferences->rdf_urls = g_list_prepend (pd->summary->preferences->rdf_urls, g_strdup (info->url));
+ row = gtk_clist_prepend (GTK_CLIST (pd->rdf->shown), text);
+ gtk_clist_set_row_data (GTK_CLIST (pd->rdf->shown), row,
+ pd->summary->preferences->rdf_urls);
}
-
- pd->summary->preferences->rdf_urls = g_list_prepend (pd->summary->preferences->rdf_urls, g_strdup (info->url));
- gtk_clist_prepend (GTK_CLIST (pd->rdf->shown), text);
-
gnome_property_box_changed (pd->box);
}
@@ -753,9 +758,9 @@ rdf_remove_clicked_cb (GtkButton *button,
int row;
row = GPOINTER_TO_INT (GTK_CLIST (pd->rdf->shown)->selection->data);
+ p = gtk_clist_get_row_data (GTK_CLIST (pd->rdf->shown), row);
gtk_clist_remove (GTK_CLIST (pd->rdf->shown), row);
-
- p = g_list_nth (pd->summary->preferences->rdf_urls, row);
+
pd->summary->preferences->rdf_urls = g_list_remove_link (pd->summary->preferences->rdf_urls, p);
g_free (p->data);
g_list_free (p);
diff --git a/my-evolution/my-evolution.glade b/my-evolution/my-evolution.glade
index c4f1dfef90..cf2b8416bc 100644
--- a/my-evolution/my-evolution.glade
+++ b/my-evolution/my-evolution.glade
@@ -514,7 +514,7 @@
<can_focus>True</can_focus>
<columns>1</columns>
<column_widths>80</column_widths>
- <selection_mode>GTK_SELECTION_EXTENDED</selection_mode>
+ <selection_mode>GTK_SELECTION_SINGLE</selection_mode>
<show_titles>False</show_titles>
<shadow_type>GTK_SHADOW_IN</shadow_type>
@@ -774,7 +774,7 @@
<class>GtkLabel</class>
<child_name>Notebook:tab</child_name>
<name>label6</name>
- <label>New Feeds</label>
+ <label>News Feeds</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>