mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add widget names to import dialogs so they can be manipulated with css
This commit is contained in:
parent
b85afa790f
commit
7bc4e0370d
@ -457,6 +457,10 @@ Account * gnc_import_select_account(GtkWidget *parent,
|
|||||||
picker->warning = GTK_WIDGET(gtk_builder_get_object (builder, "warning_label"));
|
picker->warning = GTK_WIDGET(gtk_builder_get_object (builder, "warning_label"));
|
||||||
picker->ok_button = GTK_WIDGET(gtk_builder_get_object (builder, "okbutton"));
|
picker->ok_button = GTK_WIDGET(gtk_builder_get_object (builder, "okbutton"));
|
||||||
|
|
||||||
|
// Set the name for this dialog so it can be easily manipulated with css
|
||||||
|
gtk_widget_set_name (GTK_WIDGET(picker->dialog), "gnc-id-import-account-picker");
|
||||||
|
gnc_widget_style_context_add_class (GTK_WIDGET(picker->dialog), "gnc-class-imports");
|
||||||
|
|
||||||
if (parent)
|
if (parent)
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (picker->dialog),
|
gtk_window_set_transient_for (GTK_WINDOW (picker->dialog),
|
||||||
GTK_WINDOW (parent));
|
GTK_WINDOW (parent));
|
||||||
|
@ -657,6 +657,10 @@ on_matcher_help_clicked (GtkButton *button, gpointer user_data)
|
|||||||
help_dialog = GTK_WIDGET(gtk_builder_get_object (builder, "matcher_help_dialog"));
|
help_dialog = GTK_WIDGET(gtk_builder_get_object (builder, "matcher_help_dialog"));
|
||||||
gtk_window_set_transient_for (GTK_WINDOW(help_dialog), GTK_WINDOW(info->main_widget));
|
gtk_window_set_transient_for (GTK_WINDOW(help_dialog), GTK_WINDOW(info->main_widget));
|
||||||
|
|
||||||
|
// Set the name for this dialog so it can be easily manipulated with css
|
||||||
|
gtk_widget_set_name (GTK_WIDGET(help_dialog), "gnc-id-import-matcher-help");
|
||||||
|
gnc_widget_style_context_add_class (GTK_WIDGET(help_dialog), "gnc-class-imports");
|
||||||
|
|
||||||
/* Connect the signals */
|
/* Connect the signals */
|
||||||
gtk_builder_connect_signals_full (builder, gnc_builder_connect_full_func, help_dialog);
|
gtk_builder_connect_signals_full (builder, gnc_builder_connect_full_func, help_dialog);
|
||||||
|
|
||||||
@ -1059,6 +1063,10 @@ input_new_fields (GNCImportMainMatcher *info, RowInfo *rowinfo,
|
|||||||
|
|
||||||
dialog = GTK_WIDGET(gtk_builder_get_object (builder, "transaction_edit_dialog"));
|
dialog = GTK_WIDGET(gtk_builder_get_object (builder, "transaction_edit_dialog"));
|
||||||
|
|
||||||
|
// Set the name for this dialog so it can be easily manipulated with css
|
||||||
|
gtk_widget_set_name (GTK_WIDGET(dialog), "gnc-id-import-matcher-edits");
|
||||||
|
gnc_widget_style_context_add_class (GTK_WIDGET(dialog), "gnc-class-imports");
|
||||||
|
|
||||||
desc_entry = GTK_WIDGET(gtk_builder_get_object (builder, "desc_entry"));
|
desc_entry = GTK_WIDGET(gtk_builder_get_object (builder, "desc_entry"));
|
||||||
memo_entry = GTK_WIDGET(gtk_builder_get_object (builder, "memo_entry"));
|
memo_entry = GTK_WIDGET(gtk_builder_get_object (builder, "memo_entry"));
|
||||||
notes_entry = GTK_WIDGET(gtk_builder_get_object (builder, "notes_entry"));
|
notes_entry = GTK_WIDGET(gtk_builder_get_object (builder, "notes_entry"));
|
||||||
@ -1718,6 +1726,11 @@ gnc_gen_trans_list_new (GtkWidget *parent,
|
|||||||
box = GTK_WIDGET(gtk_builder_get_object (builder, "transaction_matcher_content"));
|
box = GTK_WIDGET(gtk_builder_get_object (builder, "transaction_matcher_content"));
|
||||||
gtk_box_pack_start (GTK_BOX(pbox), box, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX(pbox), box, TRUE, TRUE, 0);
|
||||||
|
|
||||||
|
// Set the name for this dialog so it can be easily manipulated with css
|
||||||
|
gtk_widget_set_name (GTK_WIDGET(info->main_widget), "gnc-id-import-matcher-transactions");
|
||||||
|
gtk_widget_set_name (GTK_WIDGET(box), "gnc-id-import-transaction-content");
|
||||||
|
gnc_widget_style_context_add_class (GTK_WIDGET(info->main_widget), "gnc-class-imports");
|
||||||
|
|
||||||
/* setup the common parts */
|
/* setup the common parts */
|
||||||
gnc_gen_trans_common_setup (info, parent, builder, heading,
|
gnc_gen_trans_common_setup (info, parent, builder, heading,
|
||||||
all_from_same_account, match_date_hardlimit);
|
all_from_same_account, match_date_hardlimit);
|
||||||
@ -1768,6 +1781,9 @@ gnc_gen_trans_assist_new (GtkWidget *parent,
|
|||||||
g_assert (box != NULL);
|
g_assert (box != NULL);
|
||||||
gtk_box_pack_start (GTK_BOX(assistant_page), box, TRUE, TRUE, 6);
|
gtk_box_pack_start (GTK_BOX(assistant_page), box, TRUE, TRUE, 6);
|
||||||
|
|
||||||
|
// Set the name for this dialog so it can be easily manipulated with css
|
||||||
|
gtk_widget_set_name (GTK_WIDGET(box), "gnc-id-import-transaction-content");
|
||||||
|
|
||||||
/* setup the common parts */
|
/* setup the common parts */
|
||||||
gnc_gen_trans_common_setup (info, parent, builder, heading,
|
gnc_gen_trans_common_setup (info, parent, builder, heading,
|
||||||
all_from_same_account, match_date_hardlimit);
|
all_from_same_account, match_date_hardlimit);
|
||||||
|
@ -468,6 +468,10 @@ init_match_picker_gui(GtkWidget *parent, GNCImportMatchPicker * matcher)
|
|||||||
matcher->match_view = (GtkTreeView *)GTK_WIDGET(gtk_builder_get_object (builder, "matched_view"));
|
matcher->match_view = (GtkTreeView *)GTK_WIDGET(gtk_builder_get_object (builder, "matched_view"));
|
||||||
matcher->reconciled_chk = (GtkCheckButton *)GTK_WIDGET(gtk_builder_get_object(builder, "hide_reconciled_check1"));
|
matcher->reconciled_chk = (GtkCheckButton *)GTK_WIDGET(gtk_builder_get_object(builder, "hide_reconciled_check1"));
|
||||||
|
|
||||||
|
// Set the name for this dialog so it can be easily manipulated with css
|
||||||
|
gtk_widget_set_name (GTK_WIDGET(matcher->transaction_matcher), "gnc-id-import-matcher-picker");
|
||||||
|
gnc_widget_style_context_add_class (GTK_WIDGET(matcher->transaction_matcher), "gnc-class-imports");
|
||||||
|
|
||||||
gtk_window_set_transient_for (GTK_WINDOW (matcher->transaction_matcher), GTK_WINDOW(parent));
|
gtk_window_set_transient_for (GTK_WINDOW (matcher->transaction_matcher), GTK_WINDOW(parent));
|
||||||
|
|
||||||
gnc_prefs_bind (GNC_PREFS_GROUP, GNC_PREF_DISPLAY_RECONCILED,
|
gnc_prefs_bind (GNC_PREFS_GROUP, GNC_PREF_DISPLAY_RECONCILED,
|
||||||
|
Loading…
Reference in New Issue
Block a user