/** * Pop up a transaction print config dialog. * * \param button Not used. * \param null Not used. * * \return FALSE */ gboolean print_transactions_list ( GtkWidget * button, gpointer null ) { print_dialog_config ( G_CALLBACK (print_transactions_list_begin), G_CALLBACK (print_transactions_list_draw_page), _("Fonts & layout"), G_CALLBACK (print_transactions_list_layout_config), G_CALLBACK (print_transactions_list_apply), NULL ); return FALSE; }
gboolean print_tree_view_list ( GtkWidget *menu_item, GtkTreeView *tree_view ) { GtkWidget *label_title; GtkTreeSelection *tree_selection; devel_debug (NULL); tree_selection = gtk_tree_view_get_selection ( GTK_TREE_VIEW ( tree_view ) ); if ( !gtk_tree_selection_get_selected ( GTK_TREE_SELECTION ( tree_selection ), NULL, NULL ) ) return FALSE; label_title = g_object_get_data ( G_OBJECT ( tree_view ), "label_title" ); title_string = g_strdup ( gtk_label_get_text ( GTK_LABEL ( label_title ) ) ); print_dialog_config ( G_CALLBACK ( print_tree_view_list_begin ), G_CALLBACK ( print_tree_view_list_draw_page ), _("Fonts & layout"), G_CALLBACK ( print_tree_view_list_layout_config ), G_CALLBACK ( print_transactions_list_apply ), ( gpointer ) tree_view ); return TRUE; }