mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Bug #525821 - new or edited account names should be checked for reserved chars like ":"
Addendum: Fix compatibility with older Gtk versions. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18986 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -158,14 +158,14 @@ gnc_account_separator_prefs_cb (GConfEntry *unused, GtkWidget *dialog)
|
|||||||
GtkTooltipsData *tipsdata = gtk_tooltips_data_get (image);
|
GtkTooltipsData *tipsdata = gtk_tooltips_data_get (image);
|
||||||
gchar *message = gnc_account_name_violations_errmsg ( gnc_get_account_separator_string(),
|
gchar *message = gnc_account_name_violations_errmsg ( gnc_get_account_separator_string(),
|
||||||
invalid_account_names );
|
invalid_account_names );
|
||||||
gnc_warning_dialog(dialog, message);
|
gnc_warning_dialog(dialog, "%s", message);
|
||||||
|
|
||||||
gtk_tooltips_set_tip ( tipsdata->tooltips, image, message, NULL);
|
gtk_tooltips_set_tip ( tipsdata->tooltips, image, message, NULL);
|
||||||
gtk_widget_set_visible (image, TRUE);
|
gtk_widget_show (image);
|
||||||
g_free ( message );
|
g_free ( message );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
gtk_widget_set_visible (image, FALSE);
|
gtk_widget_hide (image);
|
||||||
|
|
||||||
g_list_free ( invalid_account_names );
|
g_list_free ( invalid_account_names );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user