From 4e3448a11133f4e5568b33157b45b744ee75a1b7 Mon Sep 17 00:00:00 2001 From: Luca Padovani Date: Tue, 23 Mar 2004 21:03:55 +0000 Subject: [PATCH] * added test with MathML really embedded within HTML * set plugin border to 0 (? black line still visible) * is set SHADOW_NONE the plugin window gets dirty!!! :-( --- helm/gtkmathview-bonobo/src/control-factory.c | 5 ++-- helm/gtkmathview-bonobo/test/embedding.xml | 30 +++++++++++++++++++ helm/gtkmathview-bonobo/test/test.mml | 6 ++-- .../test/testembedding.html | 2 +- 4 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 helm/gtkmathview-bonobo/test/embedding.xml diff --git a/helm/gtkmathview-bonobo/src/control-factory.c b/helm/gtkmathview-bonobo/src/control-factory.c index 59611ab75..6d90bef3d 100644 --- a/helm/gtkmathview-bonobo/src/control-factory.c +++ b/helm/gtkmathview-bonobo/src/control-factory.c @@ -408,8 +408,9 @@ gtk_math_view_control_factory(BonoboGenericFactory* factory, const gchar* compon GtkWidget *scrolled_window; scrolled_window = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window), - GTK_SHADOW_IN); + /* putting SHADOW_NONE screws the plugin window, how's that??? */ + gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window), GTK_SHADOW_IN); + gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 0); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW (scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_widget_show_all (scrolled_window); diff --git a/helm/gtkmathview-bonobo/test/embedding.xml b/helm/gtkmathview-bonobo/test/embedding.xml new file mode 100644 index 000000000..b0d12e52d --- /dev/null +++ b/helm/gtkmathview-bonobo/test/embedding.xml @@ -0,0 +1,30 @@ + + + + + + + +

GtkMathView-Bonobo test page

+ + The embedded object should display a mathematical formula. +
+ + + No viewer capable of displaying the test document installed. + + + + x + 2 + + = + click for the answer + + + + + + + + diff --git a/helm/gtkmathview-bonobo/test/test.mml b/helm/gtkmathview-bonobo/test/test.mml index e75e48838..2436838bf 100644 --- a/helm/gtkmathview-bonobo/test/test.mml +++ b/helm/gtkmathview-bonobo/test/test.mml @@ -25,7 +25,7 @@ x + - q + q @@ -121,6 +121,8 @@ + - c + c + + go to Luca's home page diff --git a/helm/gtkmathview-bonobo/test/testembedding.html b/helm/gtkmathview-bonobo/test/testembedding.html index 251c4cfc2..e894388d6 100644 --- a/helm/gtkmathview-bonobo/test/testembedding.html +++ b/helm/gtkmathview-bonobo/test/testembedding.html @@ -9,7 +9,7 @@ The embedded object should display a mathematical formula.

- + No viewer capable of displaying the test document installed. -- 2.39.2