[Gnucash-changes] r12000 - gnucash/trunk - Use a GtkMessageDialog instead of the deprecated gnome_ok_dialog

David Hampton hampton at cvs.gnucash.org
Sun Nov 20 20:58:42 EST 2005


Author: hampton
Date: 2005-11-20 20:58:41 -0500 (Sun, 20 Nov 2005)
New Revision: 12000
Trac: http://svn.gnucash.org/trac/changeset/12000

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/report/report-gnome/window-report.c
Log:
Use a GtkMessageDialog instead of the deprecated gnome_ok_dialog
function.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2005-11-21 01:55:16 UTC (rev 11999)
+++ gnucash/trunk/ChangeLog	2005-11-21 01:58:41 UTC (rev 12000)
@@ -1,5 +1,8 @@
 2005-11-20  David Hampton  <hampton at employees.org>
 
+	* src/report/report-gnome/window-report.c: Use a GtkMessageDialog
+	instead of the deprecated gnome_ok_dialog function.
+
 	* src/gnome-utils/dialog-options.c: Convert the font picker and
 	color picker from deprecated gnome widgets to their gtk
 	counterparts.  Also convert the image picker when compiled with

Modified: gnucash/trunk/src/report/report-gnome/window-report.c
===================================================================
--- gnucash/trunk/src/report/report-gnome/window-report.c	2005-11-21 01:55:16 UTC (rev 11999)
+++ gnucash/trunk/src/report/report-gnome/window-report.c	2005-11-21 01:58:41 UTC (rev 12000)
@@ -108,7 +108,18 @@
 gnc_options_dialog_help_cb(GNCOptionWin * propertybox,
                            gpointer user_data)
 {
-  gnome_ok_dialog(_("Set the report options you want using this dialog."));
+  GtkWidget *dialog, *parent;
+  struct report_default_params_data * prm = user_data;
+
+  parent = gnc_options_dialog_widget(prm->win);
+  dialog = gtk_message_dialog_new(GTK_WINDOW(parent),
+				  GTK_DIALOG_DESTROY_WITH_PARENT,
+				  GTK_MESSAGE_INFO,
+				  GTK_BUTTONS_OK,
+				  _("Set the report options you want using this dialog."));
+  g_signal_connect(G_OBJECT(dialog), "response",
+		   (GCallback)gtk_widget_destroy, NULL);
+  gtk_widget_show(dialog);
 }
 
 static void



More information about the gnucash-changes mailing list