aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution
diff options
context:
space:
mode:
Diffstat (limited to 'my-evolution')
-rw-r--r--my-evolution/ChangeLog8
-rw-r--r--my-evolution/e-summary-preferences.c52
-rw-r--r--my-evolution/e-summary-shown.c6
3 files changed, 60 insertions, 6 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog
index b27f20471c..71ac98a6f2 100644
--- a/my-evolution/ChangeLog
+++ b/my-evolution/ChangeLog
@@ -1,3 +1,11 @@
+2002-05-20 Iain Holmes <iain@ximian.com>
+
+ * e-summary-preferences.c (add_dialog_clicked_cb): Add a new summary
+ to the All table.
+ (make_property_dialog): Hook up the new button.
+
+ * e-summary-shown.c (e_summary_shown_init): Add some spacing.
+
2002-05-20 Ettore Perazzoli <ettore@ximian.com>
* e-summary-table.c: Don't show the headers in the folder table.
diff --git a/my-evolution/e-summary-preferences.c b/my-evolution/e-summary-preferences.c
index 00bb7484ff..d37f8b6c44 100644
--- a/my-evolution/e-summary-preferences.c
+++ b/my-evolution/e-summary-preferences.c
@@ -421,7 +421,7 @@ struct _MailPage {
struct _RDFPage {
GtkWidget *etable;
GtkWidget *refresh, *limit;
- GtkWidget *new_url, *delete_url;
+ GtkWidget *new_button, *delete_url;
GHashTable *default_hash, *model;
GList *known, *tmp_list;
@@ -703,7 +703,49 @@ mail_show_full_path_toggled_cb (GtkToggleButton *tb,
evolution_config_control_changed (pd->config_control);
}
-#if 0
+static void
+add_dialog_clicked_cb (GtkWidget *widget,
+ int button,
+ PropertyData *pd)
+{
+ if (button == 0) {
+ char *url;
+ char *name;
+
+ name = gtk_entry_get_text (pd->new_name_entry);
+ url = gtk_entry_get_text (pd->new_url_entry);
+
+ if (name != NULL && *name != 0 &&
+ url != NULL && *url != 0) {
+ ESummaryShownModelEntry *entry;
+ struct _RDFInfo *info;
+
+ info = g_new (struct _RDFInfo, 1);
+ info->url = g_strdup (url);
+ info->name = g_strdup (name);
+ info->custom = TRUE;
+
+ pd->rdf->known = g_list_append (pd->rdf->known, info);
+
+ entry = g_new (ESummaryShownModelEntry, 1);
+ entry->location = g_strdup (info->url);
+ entry->name = g_strdup (info->name);
+ entry->showable = TRUE;
+
+ e_summary_shown_add_node (pd->rdf->etable, TRUE,
+ entry, NULL, TRUE, NULL);
+
+ /* Should we add to shown? */
+
+ save_known_rdfs (pd->rdf->known);
+
+ evolution_config_control_changed (pd->config_control);
+ }
+ }
+
+ gtk_widget_destroy (widget);
+}
+
static void
rdf_new_url_clicked_cb (GtkButton *button,
PropertyData *pd)
@@ -745,7 +787,6 @@ rdf_new_url_clicked_cb (GtkButton *button,
hbox, TRUE, TRUE, 0);
gtk_widget_show_all (add_dialog);
}
-#endif
static void
rdf_refresh_value_changed_cb (GtkAdjustment *adj,
@@ -950,6 +991,11 @@ make_property_dialog (PropertyData *pd)
gtk_signal_connect (GTK_OBJECT (GTK_SPIN_BUTTON (rdf->limit)->adjustment), "value_changed",
GTK_SIGNAL_FUNC (rdf_limit_value_changed_cb), pd);
+ rdf->new_button = glade_xml_get_widget (pd->xml, "button11");
+ g_return_val_if_fail (rdf->limit != NULL, FALSE);
+ gtk_signal_connect (GTK_OBJECT (rdf->new_button), "clicked",
+ GTK_SIGNAL_FUNC (rdf_new_url_clicked_cb), pd);
+
/* Weather */
weather = pd->weather = g_new (struct _WeatherPage, 1);
weather->tmp_list = NULL;
diff --git a/my-evolution/e-summary-shown.c b/my-evolution/e-summary-shown.c
index c1cd23c4f6..2b6d6ea9e5 100644
--- a/my-evolution/e-summary-shown.c
+++ b/my-evolution/e-summary-shown.c
@@ -487,11 +487,11 @@ e_summary_shown_init (ESummaryShown *shown)
priv->all = make_table (shown->all_model, _("All"), GTK_SIGNAL_FUNC (all_selection_changed), shown);
- gtk_box_pack_start (GTK_BOX (shown), priv->all->etable, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (shown), priv->all->etable, TRUE, TRUE, 2);
gtk_widget_show (priv->all->etable);
vbox = gtk_vbox_new (TRUE, 0);
- gtk_box_pack_start (GTK_BOX (shown), vbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (shown), vbox, FALSE, FALSE, 2);
/* Fixme: nice GFX version */
priv->add = construct_pixmap_button (_("Add"), GNOME_STOCK_BUTTON_NEXT);
@@ -511,7 +511,7 @@ e_summary_shown_init (ESummaryShown *shown)
priv->shown = make_table (shown->shown_model, _("Shown"), GTK_SIGNAL_FUNC (shown_selection_changed), shown);
- gtk_box_pack_start (GTK_BOX (shown), priv->shown->etable, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (shown), priv->shown->etable, TRUE, TRUE, 2);
gtk_widget_show (priv->shown->etable);
}