aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ui-tests
diff options
context:
space:
mode:
authorMatthew Loper <mloper@src.gnome.org>2000-02-20 10:27:15 +0800
committerMatthew Loper <mloper@src.gnome.org>2000-02-20 10:27:15 +0800
commit92602052864e026e179557271e73e7e1640828c1 (patch)
tree6520b2cff128977ccbcc864712051e67b9c3b3d3 /tests/ui-tests
parent222bc1d3f5908077301f80b38bc08ae7412916d3 (diff)
downloadgsoc2013-evolution-92602052864e026e179557271e73e7e1640828c1.tar
gsoc2013-evolution-92602052864e026e179557271e73e7e1640828c1.tar.gz
gsoc2013-evolution-92602052864e026e179557271e73e7e1640828c1.tar.bz2
gsoc2013-evolution-92602052864e026e179557271e73e7e1640828c1.tar.lz
gsoc2013-evolution-92602052864e026e179557271e73e7e1640828c1.tar.xz
gsoc2013-evolution-92602052864e026e179557271e73e7e1640828c1.tar.zst
gsoc2013-evolution-92602052864e026e179557271e73e7e1640828c1.zip
When a link is clicked, indicate the link with a dialog.
* tests/ui-tests/message-browser.c (on_link_clicked): When a link is clicked, indicate the link with a dialog. svn path=/trunk/; revision=1864
Diffstat (limited to 'tests/ui-tests')
-rw-r--r--tests/ui-tests/message-browser.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/ui-tests/message-browser.c b/tests/ui-tests/message-browser.c
index 597721b901..85b93b4778 100644
--- a/tests/ui-tests/message-browser.c
+++ b/tests/ui-tests/message-browser.c
@@ -207,16 +207,9 @@ filename_to_camel_msg (gchar* filename)
message = camel_mime_message_new_with_session (
(CamelSession *)NULL);
- /* not the right way any more */
- /* camel_data_wrapper_construct_from_stream ( */
- /* CAMEL_DATA_WRAPPER (message), input_stream); */
-
camel_data_wrapper_set_input_stream (
CAMEL_DATA_WRAPPER (message), input_stream);
- /* not the right way any more */
- /* camel_stream_close (input_stream); */
-
return message;
}
@@ -256,15 +249,23 @@ mime_message_header_to_html (CamelMimeMessage *msg, gchar** header_string)
*header_string = g_strndup (
CAMEL_STREAM_MEM (header_stream)->buffer->data,
CAMEL_STREAM_MEM (header_stream)->buffer->len);
-
-// printf ("\n\n>>>\n%s\n", *header_string);
}
static void
on_link_clicked (GtkHTML *html, const gchar *url, gpointer data)
{
- gnome_message_box_new (url, GNOME_MESSAGE_BOX_INFO, "Okay");
+ GtkWidget* message_box;
+ gchar* message = g_strdup_printf ("You have clicked on this link:\n%s",
+ url);
+
+ message_box = gnome_message_box_new (message,
+ GNOME_MESSAGE_BOX_INFO,
+ "Okay", NULL);
+
+ gnome_dialog_set_default (GNOME_DIALOG (message_box), 1);
+ gnome_dialog_run (message_box);
+ g_free (message);
}