Use a GtkMessageDialog instead of the deprecated gnome_ok_dialog

function.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12000 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-11-21 01:58:41 +00:00
parent 27822d2fc4
commit c94cfe2734
2 changed files with 15 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2005-11-20 David Hampton <hampton@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

View File

@ -108,7 +108,18 @@ static void
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