Commit 40e50a02 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Use gnumeric_inject_widget_into_bonoboui, thus plugging leak.

2002-09-06  Morten Welinder  <terra@diku.dk>

	* src/workbook-control-gui.c (setup_progress_bar): Use
	gnumeric_inject_widget_into_bonoboui, thus plugging leak.

	* src/gui-util.c (gnumeric_inject_widget_into_bonoboui): Plug
	leak.
parent 6464e15b
2002-09-06 Morten Welinder <terra@diku.dk>
* src/workbook-control-gui.c (setup_progress_bar): Use
gnumeric_inject_widget_into_bonoboui, thus plugging leak.
* src/gui-util.c (gnumeric_inject_widget_into_bonoboui): Plug
leak.
2002-09-05 Jody Goldberg <jody@gnome.org>
* src/xml-io.c (xml_write_style) : fix writing styles now that links
......
2002-09-06 Morten Welinder <terra@diku.dk>
* src/workbook-control-gui.c (setup_progress_bar): Use
gnumeric_inject_widget_into_bonoboui, thus plugging leak.
* src/gui-util.c (gnumeric_inject_widget_into_bonoboui): Plug
leak.
2002-09-05 Jody Goldberg <jody@gnome.org>
* src/xml-io.c (xml_write_style) : fix writing styles now that links
......
2002-09-06 Morten Welinder <terra@diku.dk>
* src/workbook-control-gui.c (setup_progress_bar): Use
gnumeric_inject_widget_into_bonoboui, thus plugging leak.
* src/gui-util.c (gnumeric_inject_widget_into_bonoboui): Plug
leak.
2002-09-05 Jody Goldberg <jody@gnome.org>
* src/xml-io.c (xml_write_style) : fix writing styles now that links
......
......@@ -851,6 +851,7 @@ gnumeric_inject_widget_into_bonoboui (WorkbookControlGUI *wbcg, GtkWidget *widge
wbcg->uic, path,
BONOBO_OBJREF (control),
NULL);
bonobo_object_unref (BONOBO_OBJECT (control));
}
#endif
......
......@@ -4136,7 +4136,6 @@ static void
setup_progress_bar (WorkbookControlGUI *wbcg)
{
GtkProgressBar *progress_bar;
BonoboControl *control;
progress_bar = (GTK_PROGRESS_BAR (gtk_progress_bar_new ()));
......@@ -4146,16 +4145,9 @@ setup_progress_bar (WorkbookControlGUI *wbcg)
progress_bar, GTK_PROGRESS_CONTINUOUS);
wbcg->progress_bar = GTK_WIDGET (progress_bar);
gtk_widget_show (wbcg->progress_bar);
control = bonobo_control_new (wbcg->progress_bar);
g_return_if_fail (control != NULL);
bonobo_ui_component_object_set (
wbcg->uic,
"/status/Progress",
BONOBO_OBJREF (control),
NULL);
gnumeric_inject_widget_into_bonoboui (wbcg, wbcg->progress_bar,
"/status/Progress");
}
#endif
......@@ -4755,7 +4747,7 @@ workbook_control_gui_init (WorkbookControlGUI *wbcg,
bonobo_ui_component_add_verb_list_with_data (wbcg->uic, verbs, wbcg);
{
char *dir = gnumeric_sys_data_dir (NULL);
const char *dir = gnumeric_sys_data_dir (NULL);
bonobo_ui_util_set_ui (wbcg->uic, dir,
"GNOME_Gnumeric.xml", "gnumeric", NULL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment