mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-07-30 08:08:15 -05:00
Fix transient parent warnings for budgets
This commit is contained in:
@@ -242,7 +242,7 @@ gnc_plugin_budget_cmd_open_budget (GtkAction *action,
|
||||
}
|
||||
else
|
||||
{
|
||||
bgt = gnc_budget_gui_select_budget(book);
|
||||
bgt = gnc_budget_gui_select_budget(GTK_WINDOW(data->window), book);
|
||||
}
|
||||
|
||||
if (bgt) gnc_main_window_open_page(
|
||||
@@ -276,7 +276,7 @@ gnc_plugin_budget_cmd_copy_budget (GtkAction *action,
|
||||
}
|
||||
else
|
||||
{
|
||||
bgt = gnc_budget_gui_select_budget(book);
|
||||
bgt = gnc_budget_gui_select_budget(GTK_WINDOW(data->window), book);
|
||||
}
|
||||
|
||||
if (bgt)
|
||||
@@ -311,7 +311,7 @@ row_activated_cb(GtkTreeView *tv, GtkTreePath *path, GtkTreeViewColumn *column,
|
||||
}
|
||||
|
||||
GncBudget *
|
||||
gnc_budget_gui_select_budget(QofBook *book)
|
||||
gnc_budget_gui_select_budget(GtkWindow *parent, QofBook *book)
|
||||
{
|
||||
GncBudget *bgt;
|
||||
GtkDialog *dlg;
|
||||
@@ -323,7 +323,7 @@ gnc_budget_gui_select_budget(QofBook *book)
|
||||
gboolean ok;
|
||||
|
||||
dlg = GTK_DIALOG(gtk_dialog_new_with_buttons(
|
||||
_("Select a Budget"), NULL, GTK_DIALOG_MODAL,
|
||||
_("Select a Budget"), parent, GTK_DIALOG_MODAL,
|
||||
_("_OK"), GTK_RESPONSE_OK,
|
||||
_("_Cancel"), GTK_RESPONSE_CANCEL, NULL));
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ GType gnc_plugin_budget_get_type(void);
|
||||
GncPlugin *gnc_plugin_budget_new(void);
|
||||
|
||||
/* Launch the budget list dialog.*/
|
||||
GncBudget * gnc_budget_gui_select_budget(QofBook *book);
|
||||
GncBudget * gnc_budget_gui_select_budget(GtkWindow *parent, QofBook *book);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
@@ -163,7 +163,7 @@ static GtkActionEntry gnc_plugin_page_budget_actions [] =
|
||||
static guint gnc_plugin_page_budget_n_actions =
|
||||
G_N_ELEMENTS (gnc_plugin_page_budget_actions);
|
||||
|
||||
#if 0
|
||||
#if 0
|
||||
static const gchar *actions_requiring_account[] =
|
||||
{
|
||||
"OpenAccountAction",
|
||||
@@ -785,8 +785,7 @@ gnc_plugin_page_budget_cmd_view_options (GtkAction *action,
|
||||
|
||||
priv->dialog = GTK_WIDGET(gtk_builder_get_object (builder, "budget_options_container_dialog"));
|
||||
|
||||
gtk_window_set_transient_for(
|
||||
GTK_WINDOW(priv->dialog),
|
||||
gtk_window_set_transient_for(GTK_WINDOW(priv->dialog),
|
||||
GTK_WINDOW(gnc_plugin_page_get_window(GNC_PLUGIN_PAGE(page))));
|
||||
|
||||
gbname = GTK_WIDGET(gtk_builder_get_object (builder, "BudgetName"));
|
||||
@@ -939,8 +938,7 @@ gnc_plugin_page_budget_cmd_estimate_budget(GtkAction *action,
|
||||
|
||||
dialog = GTK_WIDGET(gtk_builder_get_object (builder, "budget_estimate_dialog"));
|
||||
|
||||
gtk_window_set_transient_for(
|
||||
GTK_WINDOW(dialog),
|
||||
gtk_window_set_transient_for(GTK_WINDOW(dialog),
|
||||
GTK_WINDOW(gnc_plugin_page_get_window(GNC_PLUGIN_PAGE(page))));
|
||||
|
||||
hb = GTK_WIDGET(gtk_builder_get_object (builder, "StartDate_hbox"));
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
<property name="page_increment">1</property>
|
||||
</object>
|
||||
<object class="GtkDialog" id="budget_estimate_dialog">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="border_width">5</property>
|
||||
<property name="title" translatable="yes">Estimate Budget Values</property>
|
||||
@@ -174,7 +173,6 @@
|
||||
<property name="page_increment">12</property>
|
||||
</object>
|
||||
<object class="GtkDialog" id="budget_options_container_dialog">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="title" translatable="yes">Budget Options</property>
|
||||
<property name="modal">True</property>
|
||||
@@ -393,7 +391,6 @@
|
||||
</action-widgets>
|
||||
</object>
|
||||
<object class="GtkDialog" id="budget_list_dialog - Not Used">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="border_width">6</property>
|
||||
<property name="title" translatable="yes">Budget List</property>
|
||||
|
||||
Reference in New Issue
Block a user