aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-07-07 01:26:47 +0800
committerIain Holmes <iain@src.gnome.org>2001-07-07 01:26:47 +0800
commitd78749b52160b46f3409963372113c786c0088e7 (patch)
treee7829fff58cd3abdbf2ff9b33bbb87e096139ac9 /my-evolution
parent15aeda78aa5c7edd4e4c30a4f728290126b2e0bd (diff)
downloadgsoc2013-evolution-d78749b52160b46f3409963372113c786c0088e7.tar.gz
gsoc2013-evolution-d78749b52160b46f3409963372113c786c0088e7.tar.zst
gsoc2013-evolution-d78749b52160b46f3409963372113c786c0088e7.zip
Fix bad selection clist stuff
svn path=/trunk/; revision=10848
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>
ommitgraph'>* multimedia/openh264: update to 2.0.0jbeich2019-06-171-1/+1 * multimedia/svt-av1: update to 0.5.0.264jbeich2019-06-111-1/+1 * multimedia/svt-av1: update to 0.5.0.247jbeich2019-06-091-1/+1 * Switch default version of samba from 4.7 to 4.8antoine2019-06-041-1/+1 * multimedia/svt-av1: update to 0.5.0.88jbeich2019-05-302-4/+4 * multimedia/ffmpeg: Remove FreeBSD 10.x crufttobik2019-05-271-1/+0 * multimedia/svt-av1: update to 0.5.0.28jbeich2019-05-251-1/+1 * multimedia/ffmpeg: use stable SVTAV1 patch after r502105 (nop)jbeich2019-05-201-1/+1 * multimedia/svt-av1: update to s20190512jbeich2019-05-131-1/+1 * multimedia/ffmpeg: backport AOM warning fixjbeich2019-05-092-2/+13 * multimedia/svt-vp9: update to s20180426jbeich2019-04-292-4/+4 * multimedia/svt-av1: update to s20180427jbeich2019-04-291-1/+1 * multimedia/ffmpeg: fix stage-qa warningsjbeich2019-04-291-1/+3 * multimedia/svt-av1: update to s20180409jbeich2019-04-111-1/+1 * multimedia/ffmpeg: unbreak SVTAV1 after r498218jbeich2019-04-082-3/+3 * Chase update of libbluray to upstream release 1.1.1riggs2019-04-071-0/+1 * multimedia/ffmpeg: update to 4.1.3jbeich2019-04-032-5/+4 * multimedia/ffmpeg: backport some aom/dav1d fixesjbeich2019-03-303-26/+178 * multimedia/ffmpeg: update to 4.1.2jbeich2019-03-232-5/+4 * multimedia/x264: update to 0.157.2945jbeich2019-03-191-1/+1 * Prefer dav1d over for decodingriggs2019-03-172-1/+19 * multimedia/svt-av1: update to s20180315jbeich2019-03-162-4/+4 * multimedia/ffmpeg: backport fixes for libdav1djbeich2019-03-132-17/+128 * multimedia/x265: update to 3.0jbeich2019-03-111-1/+1 * multimedia/svt-av1: update to s20180307jbeich2019-03-092-4/+4 * multimedia/ffmpeg: enable DAV1D by defaultjbeich2019-03-051-2/+2 * multimedia/dav1d: update to 0.2.0jbeich2019-03-051-1/+1 * multimedia/svt-av1: update to s20180228jbeich2019-03-021-1/+1 * multimedia/svt-av1: update to s20180222jbeich2019-02-231-0/+1 * multimedia/ffmpeg: add another HEVC encoderjbeich2019-02-182-3/+21 * multimedia/ffmpeg: unbreak "make makesum" after r493156jbeich2019-02-181-4/+6 * multimedia/ffmpeg: add another VP9 encoderjbeich2019-02-172-1/+17 * multimedia/ffmpeg: limit SVT-AV1 distfile to its own PATCH_SITESjbeich2019-02-171-2/+2 * multimedia/ffmpeg: unbreak SVTAV1=off on amd64 after r493026jbeich2019-02-171-1/+1 * multimedia/ffmpeg: add another AV1 encoderjbeich2019-02-162-2/+14 * multimedia/ffmpeg: update to 4.1.1jbeich2019-02-102-5/+4 * multimedia/libvpx: update 1.8.0jbeich2019-02-06