[Gnucash-changes] Use the progress bar in the current window,
not always the first window.
David Hampton
hampton at cvs.gnucash.org
Tue Jul 19 19:54:35 EDT 2005
Log Message:
-----------
Use the progress bar in the current window, not always the first
window.
Tags:
----
gnucash-gnome2-dev
Modified Files:
--------------
gnucash/src/report/report-gnome:
gnc-plugin-page-report.c
Revision Data
-------------
Index: gnc-plugin-page-report.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/report/report-gnome/Attic/gnc-plugin-page-report.c,v
retrieving revision 1.1.2.14
retrieving revision 1.1.2.15
diff -Lsrc/report/report-gnome/gnc-plugin-page-report.c -Lsrc/report/report-gnome/gnc-plugin-page-report.c -u -r1.1.2.14 -r1.1.2.15
--- src/report/report-gnome/gnc-plugin-page-report.c
+++ src/report/report-gnome/gnc-plugin-page-report.c
@@ -311,12 +311,12 @@
DEBUG( "passing id_name=[%s] child_name=[%s] type=[%s], location=[%s], label=[%s]",
id_name, child_name, type, url_location, url_label );
- gnc_window_set_progressbar_window( GNC_WINDOW(gnc_ui_get_toplevel()) );
+ gnc_window_set_progressbar_window( GNC_WINDOW(page->window) );
gnc_html_show_url(report->html, type, url_location, url_label, 0);
gnc_window_set_progressbar_window( NULL );
gtk_signal_connect(GTK_OBJECT(report->container), "expose_event",
- GTK_SIGNAL_FUNC(gnc_plugin_page_report_expose_event_cb), report);
+ GTK_SIGNAL_FUNC(gnc_plugin_page_report_expose_event_cb), gppReport);
gtk_widget_show_all( GTK_WIDGET(report->container) );
@@ -525,8 +525,12 @@
static void
gnc_plugin_page_report_expose_event_cb(GtkWidget *unused, GdkEventExpose *unused1, gpointer data)
{
- GncPluginPageReportPrivate *win = data;
+ GncPluginPageReport *page = data;
+ GncPluginPageReportPrivate *win;
+ g_return_if_fail(GNC_IS_PLUGIN_PAGE_REPORT(page));
+
+ win = page->priv;
DEBUG( "drawin'" );
ENTER( "report_draw" );
if (!win->need_reload)
@@ -536,7 +540,7 @@
}
win->need_reload = FALSE;
- gnc_window_set_progressbar_window( GNC_WINDOW(gnc_ui_get_toplevel()) );
+ gnc_window_set_progressbar_window( GNC_WINDOW(GNC_PLUGIN_PAGE(page)->window) );
gnc_html_reload(win->html);
gnc_window_set_progressbar_window( NULL );
LEAVE( "reload forced" );
More information about the gnucash-changes
mailing list