X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fgtkmathview-bonobo%2Ftest%2Fmain.c;h=e737329ec7ac1b93417d589ed2f777053ef6bbcc;hb=b47aab1cb2108a991a328ffffc9d6d10999e6a0c;hp=0986fdd71545c7832a2438dc9c7ddd2e581c291e;hpb=4d6c4a7262efde3ffa94e3d62307b517b6d83924;p=helm.git
diff --git a/helm/gtkmathview-bonobo/test/main.c b/helm/gtkmathview-bonobo/test/main.c
index 0986fdd71..e737329ec 100644
--- a/helm/gtkmathview-bonobo/test/main.c
+++ b/helm/gtkmathview-bonobo/test/main.c
@@ -231,8 +231,8 @@ get_top(GtkWidget *widget,
control_frame = bonobo_widget_get_control_frame(BONOBO_WIDGET(control));
prop_bag = bonobo_control_frame_get_control_property_bag(control_frame,NULL);
- top_x = bonobo_pbclient_get_long(prop_bag,"top_x",NULL);
- top_y = bonobo_pbclient_get_long(prop_bag,"top_y",NULL);
+ top_x = bonobo_pbclient_get_long(prop_bag,"top-x",NULL);
+ top_y = bonobo_pbclient_get_long(prop_bag,"top-y",NULL);
printf("Top X: %d ,Top Y: %d\n",top_x,top_y);
@@ -252,59 +252,13 @@ get_font_size(GtkWidget *widget,
control_frame = bonobo_widget_get_control_frame(BONOBO_WIDGET(control));
prop_bag = bonobo_control_frame_get_control_property_bag(control_frame,NULL);
- font_size = bonobo_pbclient_get_long(prop_bag,"font_size",NULL);
+ font_size = bonobo_pbclient_get_long(prop_bag,"font-size",NULL);
printf("FontSize : %d\n",font_size);
bonobo_object_release_unref(prop_bag,NULL);
}
-static void
-get_antialiasing(GtkWidget *widget,
- gpointer data)
-{
- gboolean antialiasing;
- BonoboWidget* control;
- BonoboControlFrame* control_frame;
- Bonobo_PropertyBag prop_bag;
-
- control = BONOBO_WIDGET(bonobo_window_get_contents(BONOBO_WINDOW(data)));
- control_frame = bonobo_widget_get_control_frame(BONOBO_WIDGET(control));
- prop_bag = bonobo_control_frame_get_control_property_bag(control_frame,NULL);
-
- antialiasing = bonobo_pbclient_get_boolean(prop_bag,"anti_aliasing",NULL);
-
- if(antialiasing == TRUE)
- printf("Antialiasing is set\n");
- else if(antialiasing == FALSE)
- printf("Antialiasing is not set\n");
-
- bonobo_object_release_unref(prop_bag,NULL);
-}
-
-static void
-get_transparency(GtkWidget *widget,
- gpointer data)
-{
- gboolean transparency;
- BonoboWidget* control;
- BonoboControlFrame* control_frame;
- Bonobo_PropertyBag prop_bag;
-
- control = BONOBO_WIDGET(bonobo_window_get_contents(BONOBO_WINDOW(data)));
- control_frame = bonobo_widget_get_control_frame(BONOBO_WIDGET(control));
- prop_bag = bonobo_control_frame_get_control_property_bag(control_frame,NULL);
-
- transparency = bonobo_pbclient_get_boolean(prop_bag,"transparency",NULL);
-
- if(transparency == TRUE)
- printf("Transparency is set\n");
- else if(transparency == FALSE)
- printf("Transparency is not set\n");
-
- bonobo_object_release_unref(prop_bag,NULL);
-}
-
static void
get_verbosity(GtkWidget *widget,
gpointer data)
@@ -325,26 +279,6 @@ get_verbosity(GtkWidget *widget,
bonobo_object_release_unref(prop_bag,NULL);
}
-static void
-get_font_manager(GtkWidget *widget,
- gpointer data)
-{
- gint font_manager;
- BonoboWidget* control;
- BonoboControlFrame* control_frame;
- Bonobo_PropertyBag prop_bag;
-
- control = BONOBO_WIDGET(bonobo_window_get_contents(BONOBO_WINDOW(data)));
- control_frame = bonobo_widget_get_control_frame(BONOBO_WIDGET(control));
- prop_bag = bonobo_control_frame_get_control_property_bag(control_frame,NULL);
-
- font_manager = bonobo_pbclient_get_long(prop_bag,"font_manager",NULL);
-
- printf("Font_manager: %d\n",font_manager);
-
- bonobo_object_release_unref(prop_bag,NULL);
-}
-
static BonoboUIVerb verbs [] = {
BONOBO_UI_UNSAFE_VERB ("OpenFile", open_through_persist_file_cb),
BONOBO_UI_UNSAFE_VERB ("OpenStream", open_through_persist_stream_cb),
@@ -352,10 +286,7 @@ static BonoboUIVerb verbs [] = {
BONOBO_UI_UNSAFE_VERB ("Size", get_size),
BONOBO_UI_UNSAFE_VERB ("Top", get_top),
BONOBO_UI_UNSAFE_VERB ("Font Size", get_font_size),
- BONOBO_UI_UNSAFE_VERB ("AntiAliasing", get_antialiasing),
- BONOBO_UI_UNSAFE_VERB ("Transparency", get_transparency),
BONOBO_UI_UNSAFE_VERB ("Verbosity", get_verbosity),
- BONOBO_UI_UNSAFE_VERB ("Font Manager", get_font_manager),
BONOBO_UI_UNSAFE_VERB ("FileExit", exit_cb),
BONOBO_UI_VERB_END
};
@@ -372,19 +303,9 @@ static char ui [] =
" "
" "
" "
" "
@@ -531,16 +440,12 @@ install_property_bag_listener (BonoboWidget *control, BonoboWindow *bonobo_win)
bonobo_event_source_client_add_listener(prop_bag, (BonoboListenerCallbackFn)height_changed,
"Bonobo/Property:change:height",NULL,bonobo_win);
bonobo_event_source_client_add_listener(prop_bag, (BonoboListenerCallbackFn)top_x_changed,
- "Bonobo/Property:change:top_x",NULL,bonobo_win);
+ "Bonobo/Property:change:top-x",NULL,bonobo_win);
bonobo_event_source_client_add_listener(prop_bag, (BonoboListenerCallbackFn)top_y_changed,
- "Bonobo/Property:change:top_y",NULL,bonobo_win);
+ "Bonobo/Property:change:top-y",NULL,bonobo_win);
bonobo_event_source_client_add_listener(prop_bag, (BonoboListenerCallbackFn)font_size_changed,
- "Bonobo/Property:change:font_size",NULL,bonobo_win);
+ "Bonobo/Property:change:font-size",NULL,bonobo_win);
bonobo_event_source_client_add_listener(prop_bag, (BonoboListenerCallbackFn)anti_aliasing_changed,
- "Bonobo/Property:change:anti_aliasing",NULL,bonobo_win);
- bonobo_event_source_client_add_listener(prop_bag, (BonoboListenerCallbackFn)transparency_changed,
- "Bonobo/Property:change:transparency",NULL,bonobo_win);
- bonobo_event_source_client_add_listener(prop_bag, (BonoboListenerCallbackFn)verbosity_changed,
"Bonobo/Property:change:verbosity",NULL,bonobo_win);
bonobo_event_source_client_add_listener(prop_bag, (BonoboListenerCallbackFn)font_manager_changed,
"Bonobo/Property:change:font_manager",NULL,bonobo_win);